Listening for Livewire events in Alpine #4426
Unanswered
DonCamillo11
asked this question in
1. Help
Replies: 1 comment
-
should work just fine. Does the event bubble by default? Does setting a normal event listener catch it? is the div with x-on inside a x-data? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m trying to listen for an event like it is documented on the livewire doc
https://livewire.laravel.com/docs/events#listening-for-livewire-events-in-alpine
<div x-on:post-created.window="..."></div>
It is dispatched from livewire with
$this->dispatch('post-created');
But this doesn’t work. Am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions