diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-09-12 15:01:21 +0300 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-09-14 16:02:17 +0300 |
commit | 2f277bb9a0c7f95febaa630f465ea31e3e163bad (patch) | |
tree | bbb7948fe63ca81425179b46b439a687c45c5d21 | |
parent | 7e5af69524c3c59c86b501d238fdf935ccfa4851 (diff) |
Merge branch 'fly-out-nav-closest-undefined' into 'master'
Fix JS error in fly-out nav
See merge request !14212
-rw-r--r-- | app/assets/javascripts/fly_out_nav.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/fly_out_nav.js b/app/assets/javascripts/fly_out_nav.js index 4b19f7b4188..ad8254167a2 100644 --- a/app/assets/javascripts/fly_out_nav.js +++ b/app/assets/javascripts/fly_out_nav.js @@ -148,7 +148,7 @@ export const documentMouseMove = (e) => { export const subItemsMouseLeave = (relatedTarget) => { clearTimeout(timeoutId); - if (!relatedTarget.closest(`.${IS_OVER_CLASS}`)) { + if (relatedTarget && !relatedTarget.closest(`.${IS_OVER_CLASS}`)) { hideMenu(currentOpenMenu); } }; |