hc-offcanvas-nav: Unable to handle click on sub menu
Hi, I’m not able to handle clicks on items in menu that have a submenu. Is there a way to fix this?
I try to explain better: I have a structure with multiple levels:
zone 1 —>kitchen ------>fridge --------->food ------>toaster ------>table —>bath ------>shower —>bedroom ------>bed zone2 … zone 3 …
I have set a click listener on the <a>
tag of the <li>
item but everytime I click it opens the sublevel or it closes the menu without trigger the click. How can I fix this? I’m using overlapping levels style for the nav
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 42 (21 by maintainers)
I can’t use observables here, cause my plugin is not meant for that kind of use. I’ll have to traverse for the changes on the original menu and update my nav accordingly, which is a little tricky. But since I’ve hardcoded tested the code with knockout in your example I’m confident it will work as intended. 😃
I already started decomposing my code.