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

Tabs With Route - link underline highlight is not correct matched if title contains dynamic data which takes time #6009

Closed
daiyis opened this issue Nov 4, 2020 · 0 comments · Fixed by #6016

Comments

@daiyis
Copy link

daiyis commented Nov 4, 2020

Reproduction link

https://stackblitz.com/edit/angular-xmgl6x-uyzjjp?file=src/app/app.component.ts

Steps to reproduce

  1. select tab 3, so the URL contains "tab=3"
  2. refresh the browser with the internal refresh button
  3. the tab three should be active and hightlight

What is expected?

the underline highlight (ant-tabs-ink-bar) should be matched with the title

What is actually happening?

the underline highlight is miss-matched after the tab title gets updated with dynamic data - use the setTimeout as an example, it is fetching from API in the real code.

the ant-tabs-ink-bar's style calculation is not updated after the title update. It's correct in version 8.

Environment Info
ng-zorro-antd 10.1.0
Browser chrome

Regression bug from version 10

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

Successfully merging a pull request may close this issue.

3 participants