Fixes another problem that happens during knapsack testing
This commit is contained in:
parent
33ca696666
commit
800d7fd93b
|
@ -30,7 +30,7 @@ const utils = {
|
|||
},
|
||||
|
||||
isDropDownParts(target) {
|
||||
if (!target || target.tagName === 'HTML') return false;
|
||||
if (!target || !target.hasAttribute || target.tagName === 'HTML') return false;
|
||||
return target.hasAttribute(DATA_TRIGGER) || target.hasAttribute(DATA_DROPDOWN);
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue