angular / angular/components

[Tabs] Scrollbar shows on tab changes

Aperta
#27,380 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area: material/tabs P4
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

### Is this a regression?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

This was discussed previously in #6104

Last comment was:
Confirmed that there is no scrollbar during animation in v15: https://stackblitz.com/edit/angular-shzd6r-pwokjj (tested on Chrome w/ MacOS) - @mmalerba

However using the [stackblitz example](https://stackblitz.com/edit/angular-shzd6r-pwokjj) in Google Chrome, shows the scrollbar each time you tab from Title 1 to Title 2.

Using dynamicHeight on mat-tab-group still works as a workaround.

### Reproduction

StackBlitz link: [Link](https://stackblitz.com/edit/stackblitz-starters-dk71gk?file=src%2Fmain.ts)
Steps to reproduce:
1. switch tabs

### Expected Behavior

No scrollbar

### Actual Behavior

Scrollbar flashes for a short moment

### Environment

- Angular: 16.1.2
- CDK/Material: 16.1.2
- Browser(s): Google Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 11

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con la riproduzione StackBlitz collegata in src/main.ts e riproduci il problema in Google Chrome passando da una scheda all’altra. Confronta il comportamento previsto senza barra di scorrimento con il breve lampeggio della barra di scorrimento e usa la riproduzione per identificare il comportamento delle schede di Angular Material coinvolto. Il lavoro è completato quando il cambio di scheda non mostra più momentaneamente una barra di scorrimento senza fare affidamento su dynamicHeight.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.