Skip to content

Unable to attach event listener to element if theres already an event listener that stops bubbling #221

@peterbo

Description

@peterbo

Per definition: If an element has multiple event handlers on a single event, then even if one of them stops the bubbling, the other ones still execute.

But that doesn't seem to be the case. Is this caused by a certain implementation detail or could this be a non expected behavior?

Example:
<a href="#" class="new-message-button text-uppercase"><span class="short">Nachricht</span><span class="long">Ihre Nachricht an uns</span></a>

The a- element has an event-listener that stops bubbling:
function() { return $(this).parents(".new-message-box").addClass("open"), !1 }

Attaching an "All Links Click" Trigger has no effect. As soon as the first event-listener is deleted, the "All Links Click" trigger starts to fire onclick.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions