Skip to content
Snippets Groups Projects
Commit 7caeffca authored by Martin Leblanc's avatar Martin Leblanc
Browse files

ISTWCMS-5633:removing CS fix to javascript for horizontal menu to allow for script to execute.

parent 1f8fdaab
No related branches found
No related tags found
1 merge request!15ISTWCMS-5633: import of website's header section
......@@ -121,12 +121,12 @@
menu.querySelector('.submenu-active').classList.remove('submenu-active');
}
}
document.addEventListener('click', closeSubmenu, FALSE);
document.addEventListener('click', closeSubmenu, false);
}
for (let item of items) {
if (item.querySelector('.menu__subnav')) {
item.addEventListener('click', toggleItem, FALSE);
item.addEventListener('click', toggleItem, false);
}
// Add event listeners to keyup event of enter
// and escape keys for the menu--items .
......@@ -157,7 +157,7 @@
// If Toggle on page Add event
// listeners on the menu toggle button.
if (toggle) {
toggle.addEventListener('click', toggleMenu, FALSE);
toggle.addEventListener('click', toggleMenu, false);
}
// Apply timeout to the to event firing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment