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

Sidebar collapse icon issue #7186

Vikramalakshman opened this issue Jan 4, 2022 · 1 comment · Fixed by #7188

Sidebar collapse icon issue #7186

Vikramalakshman opened this issue Jan 4, 2022 · 1 comment · Fixed by #7188


Copy link

Vikramalakshman commented Jan 4, 2022


Reproduction link

Steps to reproduce

1. Go to the official website:![SidebarICollapseIcon](
2. then just click once on the collapse icon and do not move the cursor and now the double icon issue could be noticable

What is expected?

Collapse icon should appear only once when it is clicked even after page reload

What is actually happening?

Sidebar collapse icon is appearing twice when it is clicked first time after reload

Environment Info
ng-zorro-antd 13.0.0
Browser Chrome

this double icon issue comes only once per page successful loading
but this issue is not happening in stackblitz
this bug is presented in ( official page

Copy link

@wendellhu95 I think this is related to the Icon Module and caused by the perf PR #7071 , which setSVGData method is running outside the Angular zone. Could you help take a look at it?

@hsuanxyz hsuanxyz assigned arturovt and unassigned vthinkxie Jan 5, 2022
wzhudev pushed a commit that referenced this issue Jan 5, 2022
simplejason pushed a commit that referenced this issue Jan 10, 2022
* fix(module:icon): fix old icon element not removed

close #7186

* fix: fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging a pull request may close this issue.

6 participants