- Issue created by @janc48
- 🇬🇪Georgia iamdroid
Click on the link element in the menu closes the drawer, true, and it is expected behavior. It is made so for handling anchor links on the same page. If your menu item is not intended to lead the user to another location but is intended for only expanding and collapsing the submenu, it shouldn't be a link element. It should be a
span
element instead and clicking on it won't close the drawer. To render the menu item as thespan
element you can use<nolink>
as the link target.
Mixed menu elements, which can act as a link and have an additional dropdown button, are currently not supported by the Drawer component.If it does not solve your issue still, please provide more details about your setup or how to reproduce the issue.
I see the point, however, clicking the parent menu item link doesn't open the page but only expands the submenu and closes the drawer.
- 🇬🇪Georgia iamdroid
Please provide steps to reproduce it, otherwise, I can only guess what is wrong.
- Status changed to Closed: cannot reproduce
13 days ago 9:01pm 5 September 2025 - 🇬🇪Georgia iamdroid
I've checked it in the recent version, on a clean Drupal installation, and everything looks good. Even an ordinary link with a URL doesn't lead to closing the drawer.
Now that this issue is closed, please review the contribution record.
As a contributor, attribute any organization helped you, or if you volunteered your own time.
Maintainers, please credit people who helped resolve this issue.