#11392 closed bug (invalid)
Trigger() after clone(true) doesn't fire events
Reported by: | oyejorge | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.2b1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Live events attached to cloned elements ( withDataAndEvents = true ) are not fired with trigger('click').
A simple demonstration: http://jsfiddle.net/AzujE/1/
Change History (4)
comment:1 Changed 11 years ago by
comment:3 Changed 11 years ago by
The recommended resolution of using trigger('click') doesn't work either as the jquery documentation suggests:
when .click() is called without arguments, it is a shortcut for .trigger("click").
Admittedly, the example on jsfiddle wasn't the best (it appears to fail with jQuery 1.6.4 as well) so I have updated it: http://jsfiddle.net/AzujE/5/
Run it with jQuery edge, then switch it over to 1.6.4 and you'll get two different results.
Note: See
TracTickets for help on using
tickets.
Updated test case: http://jsfiddle.net/AzujE/3/