Opened 13 years ago
Closed 13 years ago
#6669 closed bug (invalid)
stopPropagation does not work
Reported by: | filipe.abreu | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.3 | |
Component: | event | Version: | 1.4.2 |
Keywords: | stopPropagation | Cc: | |
Blocked by: | Blocking: |
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.
Note: See
TracTickets for help on using
tickets.
How do you know it continues to bubble up the tree? Please reopen and attach a complete test case.