Open yggg opened 5 years ago
The issue is not reproducing in the Nebular 2.0.1 version.
@lexzhukov Bug still present (version 3.0.0). Please check current demo page.
In the current implementation, the sidebar and menu are not aware of each other. The current behavior is not very nice, looks like a bug.
This is still an issue. It is also present in the demo https://www.akveo.com/ngx-admin/pages/iot-dashboard
Setting up the situation:
Expected behaviour:
Any information when this will be merged?
Issue type
I'm submitting a ... (check one with "x")
Issue description
When sidebar is compacted, clicking on menu item with submenu causes menu item toggling.
Current behavior: Menu item 'expanded' state changed after each click.
Expected behavior: Clicked menu item should always be expanded.
Steps to reproduce:
Every time menu item has a different state.
Related code: https://github.com/akveo/nebular/blob/7542d5ed11a6556b7a91c4209e58a878daed37fa/src/framework/theme/components/sidebar/sidebar.component.ts#L296 https://github.com/akveo/nebular/blob/7542d5ed11a6556b7a91c4209e58a878daed37fa/src/framework/theme/components/menu/menu-item.component.html#L36
Other information:
npm, node, OS, Browser
Angular, Nebular