onokumus / metismenujs

MetisMenu: Collapsible menu plugin with Vanilla-JS
https://onokumus.github.io/metismenujs/
MIT License
128 stars 21 forks source link

1st level inactive #8

Open gtbu opened 4 years ago

gtbu commented 4 years ago

I added metismenu (metismenujs - v1.2.1 vertical - because it doesnt need jquery) to cmsimple-cms and have it functioning. But just the anchors of Menulevel 1 without dropdowns function. At Menulevel 1 with dropdowns only the sublinks function - similar to bootstrap 4 (where the toplevel is inactive as soon as it has a dropdown). The click just opens the dropdown.... If i open the dead anchor in a new browser-tab it functions. The anchors of the deeper menulevels function. Smartmenus doesnt have the problem (hover)

onokumus commented 4 years ago

@gtbu

Could you please share your code?

gtbu commented 4 years ago

I use the code from https://onokumus.com/metismenujs/mm-vertical.html# (Auto Collapse default) --- In the between i know why it doesnt funtion at that point, neither in bootstrap 4. If i klick at a menulevel 1 link with dropdown then the menu opens - and not also the link - otherwise i would immediately be in the site of the toplevel link. The only possibility to overcome this is a mouse-hover-menu which imediately opens the dropdown. Then i can still choose the link of menulevel 1. Of course a code with mouseover in the above site would be great (but i am modest)

P.S. https://mm.onokumus.com/mm-vertical-hover.html with vertical dropdowns would be a solution - but it uses jquery.