Open tristanidoux opened 3 years ago
Hmm after some investigation, this is a bit more complicated than that.
In my case, this change was needed because I didn't want the children to appear in the menu since I had already implemented router links elsewhere and didn't want to 'bloat' the sidebar menu with endless items.
Doing so, I encountered several problems:
Here goes the first pull request I made above to make the expand icon disappear. But when I investigated a bit, when clicking on the parent menu item, it didn't want to trigger the routing because of the HTML handling & parent having children (so no routerLinks taken into account).
I will try to make some changes to make it work. Sorry for the waste of time.
Oh sorry, forgot to reference it but it should be good with PR #2688.
Issue type
I'm submitting a ...
Issue description
Current behavior: When defining menu items and setting all its children to hide, the expand icon is still displayed. Therefore, the menu item appears with the expand icon but when clicking on it, nothing occurs as all its children are hidden.
Expected behavior: When an items has all its children hidden, the expand icon should not appear.
Steps to reproduce:
Related code:
Reproduction using StackBlitz
Other information:
npm, node, OS, Browser
Angular, Nebular