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

bug(MatTabNav): scrollable MatTabNav bug #23201

Closed
tworry opened this issue Jul 20, 2021 · 2 comments
Closed

bug(MatTabNav): scrollable MatTabNav bug #23201

tworry opened this issue Jul 20, 2021 · 2 comments

Comments

@tworry
Copy link

tworry commented Jul 20, 2021

Reproduction

Use StackBlitz to reproduce your issue:

Steps to reproduce:

  1. set MatTabNav [disablePagination]="true"
  2. change mat-tab css in style.scss
  3. add more tab-link to make the MatTabNav scrollable
  4. sroll to the end,and click the last link

Expected Behavior

the clicked link is active, the scroller is not changed

Actual Behavior

the MatTabNav is back to the start,and the clicked link is not active,just focused

Environment

  • Angular:12.1.2
  • CDK/Material:12.1.1
  • Browser(s):chrome 91.0.4472.77
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows
@tworry tworry added the needs triage This issue needs to be triaged by the team label Jul 20, 2021
@crisbeto
Copy link
Member

First of all, this isn't something we support since you're overriding the built in styles.

That being said, there's an existing PR that should fix your issue too #21911.

@crisbeto crisbeto added area: material/tabs and removed needs triage This issue needs to be triaged by the team labels Jul 21, 2021
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants