diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-10-12 12:20:33 +0200 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-10-30 10:28:33 +0100 |
commit | 800d7fd93be15d778055d3a94a1d033f02422186 (patch) | |
tree | c3d35849f713f5c2278a5359ad0262de532b5f83 /app | |
parent | 33ca696666e8acb7ebaa427bfe0ed8f8d9471d77 (diff) | |
download | gitlab-ce-800d7fd93be15d778055d3a94a1d033f02422186.tar.gz |
Fixes another problem that happens during knapsack testing
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/droplab/utils.js | 2 |
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); }, }; |