Need dropdown menu parent link in navbar to open the submenu on hover and lead to <a href="/example-page"> on click
See original GitHub issueI am having issues with the dropdown navigation menu.
Problem is that currently to allow the dropdown js to work, the parent link of the dropdown menu is marked up has to either be marked up as:
<a class="dropdown-toggle" data-toggle="dropdown" href="/example-page" data-target="#">
or
<a class="dropdown-toggle" data-toggle="dropdown" href="/example-page/#">
However, I need the parent link to lead to it’s href on-click! When the dropdown js is enabled on the menu, the parent link needs to be clicked to open the submenu and this probably conflicts with the on-click hyperlink function of the parent.
I need to know if it’s possible to open the submenu by hovering over the parent link instead…so that clicking the parent link can be used as a link itself.
Issue Analytics
- State:
- Created 11 years ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
Just add “disabled” as a class on your anchor:
But the parent link is not clickable even after applying the same fix? Is any idea how to make it clickable?