Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

stopPropagation does not stop propagation to listeners added with ftdomdelegate #63

@lazd

Description

@lazd

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomponentRelates to an Origami componentdocumentationImprovements or additions to documentationlibraryRelates to an Origami library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions