bug(cdk-virtual-scroll): Using cdkVirtualFor with ng-container doesn't render all items
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
#### Reproduction
https://stackblitz.com/edit/angular-afvrep
Steps to reproduce:
Click on the add button and new items will be added. Scroll down slowly until you see:

Item 49 didn't render well. If you scroll more down and back up item 49 will suddenly appear as needed.
#### Expected Behavior
All items should be rendered correctly
#### Actual Behavior
Some items (49 here) don't render as expected
#### Environment
-Angular: 10.2.2
-CDK/Material: 10.2.7
-Browser(s): Chrome Version 86.0.4240.111 (Official Build) (64-bit)
-Operating System (e.g. Windows, macOS, Ubuntu): Windows 10
コントリビューションガイド
調査の方向性
リンクされた StackBlitz の再現環境から始め、項目を追加した後にスクロールすると項目が欠落する問題を再現します。virtual-scroll における cdkVirtualFor と ng-container の動作を追跡します。追加したすべての項目が、いったん別の場所までスクロールして戻る必要なく、スクロール中に正しくレンダリングされれば Issue は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100