mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Fixes #8456. Make sure parent is not null before crawling into its lap, so mouseenter is triggered on a mouseover event.
This commit is contained in:
@@ -661,7 +661,7 @@ var withinElement = function( event ) {
|
||||
|
||||
// Chrome does something similar, the parentNode property
|
||||
// can be accessed but is null.
|
||||
if ( parent !== document && !parent.parentNode ) {
|
||||
if ( parent && parent !== document && !parent.parentNode ) {
|
||||
return;
|
||||
}
|
||||
// Traverse up the tree
|
||||
|
||||
Reference in New Issue
Block a user