Closed andrew-yangy closed 5 years ago
https://stackblitz.com/edit/angular-anbpkt?file=src/app/app.component.ts
Collapse the menu and set submenu to open
The selected sub menu should be highlighted by the class ant-menu-submenu-selected.
ant-menu-submenu-selected
The selected sub menu is not highlighted when first loaded.
It might be because of this line https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/components/menu/nz-submenu.component.ts#L197
can you see: Thu thuat
Reproduction link
https://stackblitz.com/edit/angular-anbpkt?file=src/app/app.component.ts
Steps to reproduce
Collapse the menu and set submenu to open
What is expected?
The selected sub menu should be highlighted by the class
ant-menu-submenu-selected
.What is actually happening?
The selected sub menu is not highlighted when first loaded.
It might be because of this line https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/components/menu/nz-submenu.component.ts#L197