angular / angular/components

bug(autocomplete): scroll locking

オープン
#26,484 コメント 7 件 リアクション 5 件 担当者 0 名 GitHub で見る
area: material/autocomplete P4
主要言語
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

_No response_

### Description

autocomplete does not behave like other material compnents like menu or select - those lock the scrolling of the underlying div/html/body.

![autocomplete](https://user-images.githubusercontent.com/27373333/214404976-70301962-bd39-4340-922c-451d59411a5c.gif)

### Reproduction

Steps to reproduce:
1. https://material.angular.io/components/select/overview
2. open autocomplete and scroll on body

### Expected Behavior

scroll is locked

### Actual Behavior

scrolling is enabled - inconvenient behavior between material components, resulting in multiple issues e.g. z-index or if a container for scrolling is used the autocomplete panel does not scroll.

### Environment

- Angular: 15.1.1
- CDK/Material: 15.1.1
- Browser(s): all
- Operating System (e.g. Windows, macOS, Ubuntu): all

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

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

調査の方向性

まず、リンク先の Material select の概要で問題を再現し、autocomplete のスクロールと menu または select の動作を比較します。Angular components repository で autocomplete と関連する overlay の動作を追跡します。autocomplete パネルが開いている間、基盤となる div、html、または body のスクロールが一貫してロックされれば完了です。

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

評価

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

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

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