angular / angular/components

Make mat-autocomplete scroll behavior match mat-select.

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

説明

#### Please describe the feature you would like to request.

Disable the ability to scroll the page when the autocomplete options are displayed, so autocomplete works the same as mat-select.

#### What is the use-case or motivation for this proposal?

Currently when you use mat-autocomplete, the options do not stick to the dropdown field - reported in #12500. The mat-select behavior works great, so could we copy it for mat-autocomplete?

#### Is there anything else we should know?

Looking through the mat-select code, there's 1000 lines of code related to scrolling. I could work on a PR with some pointers to where the behavior is located.

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

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

調査の方向性

まず、mat-select のスクロール実装を mat-autocomplete と比較し、ページをスクロールしたときにオプションがドロップダウンフィールドにどのように保持されるかに注目します。現在の autocomplete の動作を再現し、mat-select の動作を参照してください。autocomplete がページのスクロールを防ぎ、mat-select と同じようにオプションの位置を維持できれば完了です。

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

評価

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

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

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