angular / angular/components

bug(mat-autocomplete): Autocomplete options are moving with dialog scrollbar

オープン
#30,416 コメント 10 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: cdk/dialog area: material/autocomplete P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

### 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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

https://github.com/lopatnov/autocomplete-issue のリンクされた再現手順から始め、記載されている dialog、autocomplete、scrollbar の手順で問題を再現します。次に、位置決めに関係する Angular Material の dialog と autocomplete の動作を追跡し、dialog をスクロールすると options が autocomplete trigger の下に残ることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。