bug(mat-tab-group): mat-tab-header-pagination buttons are not reacting to viewport resize #22399
Labels
area: material/tabs
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Overview
In Angular Material v9.2.4 (and earlier) we had the following behavior: if you resize the viewport, mat-tab-group will automatically show/hide mat-tab-header-pagination buttons (buttons used for scrolling mat-tab-group horizontally) depending on how much space is available for tabs.
Starting from v10 this behavior changed.
Reproduction
Use StackBlitz to reproduce your issue:
Steps to reproduce:
Expected Behavior
mat-tab-header-pagination buttons should immediately appear/disappear as soon as mat-tab-group shrank/expanded
OR (for change detection optimizations)
mat-tab-header-pagination buttons should appear after user finished resizing, but with some delay (50-200ms for example)
Actual Behavior
mat-tab-header-pagination buttons visibility change only after manual triggering of change detection (programmatically or by user action - click)
Environment
The text was updated successfully, but these errors were encountered: