x-on.click.capture #3150
Replies: 3 comments 10 replies
-
It actually does. https://alpinejs.dev/directives/on
However, what you are showing there is improper html https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button The button element should only have phrasing content. Keyboard and screenreader focus could have trouble. |
Beta Was this translation helpful? Give feedback.
-
btw found out good example: lets imagine we have card, and inside that video-card there is a play-button |
Beta Was this translation helpful? Give feedback.
-
yeah, maybe is a good idea to add it to docs |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes i have to have nested interactable elements
and sometimes we require "parent" element to have priority for interaction
usually (with vuejs) i would do something like
however alpine does not have such modifier
Beta Was this translation helpful? Give feedback.
All reactions