Ticket #6514 (closed bug: fixed)
Mouseenter and mouseleave events not able to be triggered if bound by live
| Reported by: | brianloveswords | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 1.6 |
| Component: | event | Version: | 1.4.2 |
| Keywords: | mouseenter, mouseleave, live, trigger | Cc: | |
| Blocking: | Blocked by: |
Description
If mouseenter and mouseleave are bound by live, $.trigger() will not activate them. However if they are bound by $.bind(), they are triggerable.
I've attached a patch including QUnit tests to prove existence, and the fix. You can see the commit here: http://github.com/brianlovesdata/jquery/commit/5f816ffca67e7fdcedcff580d19c4a7d7994c48a
Attachments
Change History
Changed 3 years ago by brianloveswords
-
attachment
live-event-trigger-fix.patch
added
comment:1 Changed 3 years ago by matdumsa
I experienced the same issue. Thanks for the patch, hope it gets in 1.4.3
comment:2 Changed 3 years ago by rwaldron
- Priority set to high
- Status changed from new to open
- Milestone 1.4.3 deleted
Confirmed
comment:6 Changed 2 years ago by Brian Brennan
- Status changed from open to closed
- Resolution set to fixed
Fix live mouseenter and mouseleave binding so they can be activated by triggers. Fixes #6514.
Changeset: d46042e0500fb8241bf5ba012dfc779b535aa5fe
comment:7 Changed 2 years ago by Brian Brennan
Fix live mouseenter and mouseleave binding so they can be activated by triggers. Fixes #6514.
Changeset: 3cb9c1835c0382163b2e94ae626a7ae0d2d0d94f
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

QUnit test and fix for mouseenter and mouseleave not being triggerable when bound by live.