Modify ↓
Ticket #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: | |
| 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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
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.