Fixes another problem that happens during knapsack testing

This commit is contained in:
Tim Zallmann 2017-10-12 12:20:33 +02:00
parent 33ca696666
commit 800d7fd93b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
},
};