bigskysoftware / bigskysoftware/htmx
`htmx:abort` not working on elements inside Shadow DOM
Open
bug
- Dominant language
- JavaScript
- Stars
- 49.4k
- Forks
- 1.7k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 30
Description
I'm using htmx v2.0.6, and `htmx:abort` doesn't seem to be working on elements inside the Shadow DOM. This is the case both with directly using `htmx.trigger(element, 'htmx:abort')` and with using `hx-sync` (which looks to be using `htmx:abort` behind the scenes).
Looking at the source code, https://github.com/bigskysoftware/htmx/blob/master/src/htmx.js#L5098 seems to be the only place listening for that event, and it's doing so directly on `body`, so I'm guessing maybe the `htmx:abort` events dispatched from Shadow DOM elements just aren't being picked up by any event listener?
Contributor guide
Assessment
This issue has not been assessed yet.