Expansion panel expanded state issue with Virtual Scroll
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
#### Bug, feature request, or proposal:
`cdkVirtualScroll` does not work properly with `matAccordion` and `matExpansionPanel`.
The accordion does not respect the expansion state of individual expansion panels as you scroll.
#### What is the expected behavior?
The expansion state is maintained as you scroll
#### What is the current behavior?
If you expand the xth item in the accordion then as you scroll, the xth in the view will always be expanded. ie if you expand the 3rd item then as you scroll down to say the 1000th item then the 1003rd item will be expanded.
#### What are the steps to reproduce?
[Stackblitz example](https://stackblitz.com/edit/virtual-scroll-expansion-panels)
#### What is the use-case or motivation for changing an existing behavior?
Able to use expansion panels inside virtual scroll
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7.0
Material 7.0
MacOS 10.14
TypeScript 3.x
Browser Chrome 70.0
#### Is there anything else we should know?
No
コントリビューションガイド
調査の方向性
リンクされている StackBlitz の再現例から始め、cdkVirtualScroll が matAccordion および matExpansionPanel とどのように組み合わされているかを確認します。展開状態が再利用された viewport の位置ではなく元の項目に追従することを確認し、その動作を完了条件とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100