-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(Mat-Tab): Clicking a half-visible tab doesn't work with non-default animationDuration #21898
Comments
I can sort of see it happening here: https://stackblitz.com/edit/angular-9sk3pv?file=src/app/tab-group-dynamic-example.ts. What I think is happening is that the we start scrolling the header on |
weird, if I try the stackblitz, the animation has the default duration |
|
… header When a header is scrollable, we scroll a tab into view whenever it receives focus. The problem is that if focus is moved as a result of a mouse/touch event, the tab can be moved out from under the pointer, interrupting the click. These changes work around the issue by not scrolling the header on mouse/touch focus. Fixes angular#21898.
ah, well, we use it in combination with NoopAnimationsModule instead of BrowserAnimationsModule. |
… header When a header is scrollable, we scroll a tab into view whenever it receives focus. The problem is that if focus is moved as a result of a mouse/touch event, the tab can be moved out from under the pointer, interrupting the click. These changes work around the issue by not scrolling the header on mouse/touch focus. Fixes angular#21898.
… header (#21911) When a header is scrollable, we scroll a tab into view whenever it receives focus. The problem is that if focus is moved as a result of a mouse/touch event, the tab can be moved out from under the pointer, interrupting the click. These changes work around the issue by not scrolling the header on mouse/touch focus. Fixes #21898. (cherry picked from commit 4279ff1)
… header (#21911) When a header is scrollable, we scroll a tab into view whenever it receives focus. The problem is that if focus is moved as a result of a mouse/touch event, the tab can be moved out from under the pointer, interrupting the click. These changes work around the issue by not scrolling the header on mouse/touch focus. Fixes #21898.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Reproduction
See the video in attachment
Steps to reproduce:
{ provide: MAT_TABS_CONFIG, useValue: { animationDuration: 1 } }
Expected Behavior
Tab should jump into view AND become selected.
Actual Behavior
The tab jumps into view, BUT it doesn't become selected.
Environment
bug-2021-02-12_16.14.43.mkv.zip
The text was updated successfully, but these errors were encountered: