@click event not firing inside element manipulated by JQuery. #1755
Unanswered
pervertedpokepuffs
asked this question in
5. Bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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