bug(mat-autocomplete): Autocomplete options are moving with dialog scrollbar
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
### 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
See: https://github.com/angular/components/issues/30254, it was present in 18 version.
### Description
Demo: https://github.com/lopatnov/autocomplete-issue
### Reproduction
StackBlitz link: I don't use StackBlitz, don't know how to upload demo here.
Steps to reproduce:
1. Open dialog with some elements, to have scroll in the dialog
2. Open Autocomplete items
3. Scroll down dialog scroll and you will see issue
### Expected Behavior
Options of Autocomplete should stay below autocomplete, as it was opened. They don't need to move with dialog scrollbar.
### Actual Behavior
When dialog scrollbar moves, then autocomplete options also moves.
### Environment
- Angular: 19.1.0
- CDK/Material: 19.1.1
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Beitragsleitfaden
Rechercherichtung
Beginne mit der verlinkten Reproduktion unter https://github.com/lopatnov/autocomplete-issue und reproduziere das Problem anhand der aufgeführten Schritte für Dialog, Autovervollständigung und Scrollleiste. Verfolge anschließend das Verhalten von Angular Material-Dialog und Autovervollständigung bei der Positionierung und überprüfe, dass das Scrollen des Dialogs die Optionen unterhalb des Autovervollständigungstriggers belässt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100