summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-10-12 12:20:33 +0200
committerTim Zallmann <tzallmann@gitlab.com>2017-10-30 10:28:33 +0100
commit800d7fd93be15d778055d3a94a1d033f02422186 (patch)
treec3d35849f713f5c2278a5359ad0262de532b5f83 /app
parent33ca696666e8acb7ebaa427bfe0ed8f8d9471d77 (diff)
downloadgitlab-ce-800d7fd93be15d778055d3a94a1d033f02422186.tar.gz
Fixes another problem that happens during knapsack testing
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/droplab/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/droplab/utils.js b/app/assets/javascripts/droplab/utils.js
index 4da7344604e..bfe056a0fcc 100644
--- a/app/assets/javascripts/droplab/utils.js
+++ b/app/assets/javascripts/droplab/utils.js
@@ -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);
},
};