Bug Tracker

Modify

Ticket #6669 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

stopPropagation does not work

Reported by: filipe.abreu Owned by:
Priority: Milestone: 1.4.3
Component: event Version: 1.4.2
Keywords: stopPropagation Cc:
Blocking: Blocked by:

Description

I have the following not working:

HTML <div id="contacts_box>

<div>

<input type="checkbox" id="contact_id_7" name="contact[id]" /> <label for="contact_id_7"></label>

</div>

</div>

JS (on DOM ready) $("#contacts_box > div input").live("click", function(event) {

event.stopPropagation();

})

Yet the event continues to bubble up the DOM tree.

Change History

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

How do you know it continues to bubble up the tree? Please reopen and attach a complete test case.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.