Make sure that the correct type is set for live mouseenter/mouseleave events. Fixes #6169.
This commit is contained in:
parent
26b0e913dd
commit
28b489bfc8
|
@ -1022,6 +1022,7 @@ function liveHandler( event ) {
|
||||||
|
|
||||||
// Those two events require additional checking
|
// Those two events require additional checking
|
||||||
if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) {
|
if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) {
|
||||||
|
event.type = handleObj.preType;
|
||||||
related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];
|
related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue