Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selected sub menu isn't highlighted when collapsed #3345

Closed
andrew-yangy opened this issue Apr 23, 2019 · 1 comment
Closed

Selected sub menu isn't highlighted when collapsed #3345

andrew-yangy opened this issue Apr 23, 2019 · 1 comment

Comments

@andrew-yangy
Copy link
Contributor

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.

Environment Info
ng-zorro-antd 7.3.2
Browser Latest Chrome

It might be because of this line https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/components/menu/nz-submenu.component.ts#L197

@anhtt-asiantech
Copy link

can you see: Thu thuat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants