This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
stopPropagation does not stop propagation to listeners added with ftdomdelegate #63
Labels
bug
Something isn't working
component
Relates to an Origami component
documentation
Improvements or additions to documentation
library
Relates to an Origami library
Basically, calling
stopPropagation
on a bubble phase listeners should prevent other delegated listeners further up the DOM from being called, but it doesn't.See this Fiddle here for an example with bubble phase listeners for and this Fiddle for an example with capture phase listeners.
Furthermore, listeners added with
addEventListener
are still called because the actual call tostopPropagation
happens at the level of the root element, stopping propagation above it, but not above the child element where the user calledstopPropagation
at, see this Fiddle for an example. This is non-trivial to solve, so it should at least be documented. Note that jQuery exhibits the same behavior (but does correctly stop propagation to other listeners added further up the DOM).The text was updated successfully, but these errors were encountered: