angular / angular/components

bug(cdk-virtual-scroll): Using cdkVirtualFor with ng-container doesn't render all items

オープン
#20,972 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: cdk/scrolling P3
主要言語
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:
![image](https://user-images.githubusercontent.com/30085989/98209303-5c808e00-1f47-11eb-8e14-b921188845b0.png)
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

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

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