Skip to content
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

Open
lazd opened this issue Nov 11, 2014 · 0 comments
Labels
bug Something isn't working component Relates to an Origami component documentation Improvements or additions to documentation library Relates to an Origami library

Comments

@lazd
Copy link
Contributor

lazd commented Nov 11, 2014

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 to stopPropagation happens at the level of the root element, stopping propagation above it, but not above the child element where the user called stopPropagation 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).

@JakeChampion JakeChampion added bug Something isn't working library Relates to an Origami library labels Mar 24, 2020
@chee chee added the documentation Improvements or additions to documentation label Sep 8, 2020
@github-actions github-actions bot added the component Relates to an Origami component label Sep 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working component Relates to an Origami component documentation Improvements or additions to documentation library Relates to an Origami library
Projects
None yet
Development

No branches or pull requests

3 participants