Skip to main content

Bug Tracker

Side navigation

#13997 closed bug (fixed)

Opened June 06, 2013 04:53AM UTC

Closed March 13, 2014 01:45AM UTC

Last modified April 18, 2014 07:11PM UTC

stopImmediatePropagation doesn't stop DOM added event listeners

Reported by: Owned by: dmethvin
Priority: low Milestone: 1.11.1/2.1.1
Component: event Version: 1.10.1
Keywords: Cc:
Blocked by: Blocking:

Calling stopImmediatePropagation() will correctly stop other handlers set on the element from firing, but only those added with jQuery. Other handlers added with addEventListener() will still fire.

To stop all immediate propagation from within a jQuery event handler, one must call both:


Calling stopImmediatePropagation() on the jQuery event object should call it on the underlying DOM event object.


Attachments (0)
Change History (7)

Changed June 06, 2013 12:38PM UTC by dmethvin comment:1

component: unfiledevent
milestone: None1.10.2/2.0.3
priority: undecidedlow
status: newopen

Yep, seems to have been that way forever. Note that there is no way to stop immediate propagation in oldIE so this will introduce a difference in behavior of non-jQuery events in oldIE vs other browsers. (Perhaps consistency is why it was there?) It doesn't affect the 2.x branch due to its browser support list but it does affect 1.x.

Changed September 16, 2013 01:24AM UTC by dmethvin comment:2

milestone: 1.10.2/

Changed September 16, 2013 08:10PM UTC by m_gol comment:3

We need a milestone. This is not only a 1.x issue.

Changed September 16, 2013 08:55PM UTC by m_gol comment:4


Changed March 04, 2014 02:56PM UTC by dmethvin comment:5

owner: → dmethvin
status: openassigned

Changed March 13, 2014 01:45AM UTC by Dave Methvin comment:6

resolution: → fixed
status: assignedclosed

Event: Call underlying stopImmediatePropagation when present

Fixes #13997

Changeset: 6a89db86ed817f6a7498076e2a06b90f9fce0831

Changed April 18, 2014 07:11PM UTC by dmethvin comment:7

summary: stopImmediatePropagation doesn't stop DOM added event listendersstopImmediatePropagation doesn't stop DOM added event listeners