Nebular: Auto collapse not working for nested menus

Created on 6 Mar 2020  路  2Comments  路  Source: akveo/nebular

Issue type

I'm submitting a ... (check one with "x")

  • [x] bug report
  • [ ] feature request

Issue description

Current behavior:
When I use the NbMenuComponent with NbMenuItem[] three levels deep, the autoCollapse doesn't close second tier menus on click of second or third tier items.

Expected behavior:
When clicking on links in inner-level sub-menu's, any other open sub-menu's should close.

Steps to reproduce:
_Look at StackBlitz below_

  • Click Root level one
  • Click Root level two

_Here auto Collapse is working_

  • Click Second level two-one
  • Click Third level two-one-one
  • Click Second level two-two

_auto Collapse should either be working here (closing Second level two-one); or_

  • Click Third level two-two-two

_here._

Related code:

StackBlitz Auto collapse example

<nb-menu [items]="items" [autoCollapse]="true"></nb-menu>

All 2 comments

any have solution for this bug i need it very urgent

鍡棷锛屾垜涔熼亣鍒拌繖绫婚棶棰橈紝鐩墠姝e湪瀵绘壘瑙e喅鏂规硶锛屽笇鏈涜兘灏藉揩瑙e喅

Was this page helpful?
0 / 5 - 0 ratings