Forums
(@gadehans)
3 years, 4 months ago
Hi Kharis
Thank you. Nice work. It works well – except for submenu’s! I guess maybe the submenus are initially set to display=hidden and are not selected in this code:
const menuItem = siteNavigation.querySelectorAll(‘a[href^=”#”]’)[ 0 ];