diff options
author | Phil Hughes <me@iamphill.com> | 2017-09-12 12:09:18 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-09-12 13:06:30 +0300 |
commit | 4992f06f85ff7b2965a2844c2516d3eeed59b5dc (patch) | |
tree | db42101e5b3d7a22f2fdd71b40c05e8a5d28f0fa /app | |
parent | 2602cc0c36966ba366db8393786e9164e95a188c (diff) |
Fix JS error in fly-out nav
Diffstat (limited to 'app')
-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); } }; |