@click event not firing inside element manipulated by JQuery. #1757
Unanswered
pervertedpokepuffs
asked this question in
5. Bugs
Replies: 2 comments 7 replies
-
Is there a simple workaround to this? I'm experiencing the same problem. I have a table, rendered with DataTables which I want to put an open/close style area into for a certain column. The x-show stuff seems to work, but not the @click. |
Beta Was this translation helpful? Give feedback.
7 replies
-
Haha, I genuinely can't believe I got a reply. Thank you too! |
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
-
Discussed in #1755
Originally posted by pervertedpokepuffs July 9, 2021
I seem to have this issue where events are not firing, but only with buttons within a table that has been manipulated by JQuery (am using datatables.net). I am also using AlpineJS alongside Laravel Livewire and Blade. Below is about everything I know.
Expected behavior:
I click on the update button, the click event is emitted and runs the
openModal()
function.Actual behavior:
Clicking the update button does not trigger anything. Checking using the AlpineJS Devtools and manually toggling showModal state makes the modal appear/disappear.
Workarounds:
addEventListener('load', ...)
or in an x-init block, it will break the update button. Removing the JQuery code fixed the problem.Browsers tested on:
The html:
The JQuery:
x-data:
Beta Was this translation helpful? Give feedback.
All reactions