bug(Select): Select menu height shrinks when scrolling
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
### Is this a regression?
- [x] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
_No response_
### Description
When select menu is opened and scrolled out of view it's height becomes really small. When scrolling back into view the height never increases and stays small.
This issue is similar to already fixed issue in mat-menu component
https://github.com/angular/components/issues/18168
https://github.com/angular/components/pull/21436
### Reproduction
StackBlitz link: https://stackblitz.com/edit/zdrajstd?file=src%2Fexample%2Fselect-custom-trigger-example.html
Steps to reproduce:
1. Create a page large enough where you can scroll
2. Add a select component with a few options in the middle of the page
3. Scroll through the page while the select is open
### Expected Behavior
Select menu height should increase when scrolled back into view
### Actual Behavior
Select menu height doesn't increase and stays small.

### Environment
- Angular: 19.2.7,
- CDK/Material: 19.2.10
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
コントリビューションガイド
調査の方向性
リンクされた StackBlitz の再現から始め、メニューを開いた状態でページをスクロールしながら Select コンポーネントを追跡します。メニューがビューポートから外れて再び入ったときの高さを比較します。期待される動作で説明されているとおり、再び表示範囲内に戻るまでスクロールした後に高さがもう一度広がれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100