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

Behavior is non-standard when handler returns false #62

Description

@lazd

With jQuery, returning false within a handler effectively calls event.preventDefault() and event.stopPropagation(). See the fiddle showing this behavior.

The same is true for Gator:

As an added convenience if you return false in your callback it is a shortcut for calling e.preventDefault() followed by e.stopPropagation().

However, it seems ftdomdelegate performs the equivalent of a preventDefault() and stopImmediatePropagation() when a handler returns false, which prevents other handlers at the same level in the DOM from executing. See the fiddle showing this behavior.

This seems non-standard given older libraries have established a consistent behavior, and I feel it should be changed to match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglibraryRelates to an Origami library

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions