You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The event bubbling in this case is expected as it works the same way that the event would bubble in the addEventListener scenario. You can bind an event yourself with a js hook and call e.preventDeafault() if you need to override. Thanks!
Environment
Actual behavior
Example repo: https://github.com/wittjosiah/phx-click-bubbling
phx-click
events seem to bubble down in unexpected ways. In the following example clicking into the input triggers the event on the div.In order to prevent this an empty
phx-click
attribute needs to be added to the inputExpected behavior
Not completely sure if this is a bug or not, but in my mind the expected behavior would be for the click event not to bubble down the child input.
The text was updated successfully, but these errors were encountered: