Commit eaabcb1f authored by Tim Zallmann's avatar Tim Zallmann

Merge branch 'fly-out-nav-closest-undefined' into 'master'

Fix JS error in fly-out nav

See merge request !14212
parents 5fde2c62 4992f06f
...@@ -148,7 +148,7 @@ export const documentMouseMove = (e) => { ...@@ -148,7 +148,7 @@ export const documentMouseMove = (e) => {
export const subItemsMouseLeave = (relatedTarget) => { export const subItemsMouseLeave = (relatedTarget) => {
clearTimeout(timeoutId); clearTimeout(timeoutId);
if (!relatedTarget.closest(`.${IS_OVER_CLASS}`)) { if (relatedTarget && !relatedTarget.closest(`.${IS_OVER_CLASS}`)) {
hideMenu(currentOpenMenu); hideMenu(currentOpenMenu);
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment