angular / angular/components

Scrolling SDK (virtual-scroll) - View isn't updated when list is updated (items added/removed)

オープン
#14,635 コメント 21 件 リアクション 19 件 担当者 0 名 GitHub で見る
area: cdk/scrolling P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

#### What is the expected behavior?
If a data-list that binded to ``, is updated (items are added/ removed from this list), the `` updated as well.

#### What is the current behavior?
Changing the list will not updated the view (``)

#### What are the steps to reproduce?
StackBlitz starter: https://stackblitz.com/edit/angular-hsr4tz?file=app%2Fcdk-virtual-scroll-overview-example.html

In this demo you can see that after adding items to the list, the view isn't updated.

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7.1.4
Material 7.2.0
Browser: Chrome

#### Is there anything else we should know?
The documentation doesn't discuss about adding/removing items from data-list.
See docs at: https://material.angular.io/cdk/scrolling/overview

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

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

調査の方向性

リンクされた StackBlitz の例で、cdk-virtual-scroll-viewport にバインドされたリストに項目を追加および削除して、その動作を再現します。CDK のスクロール概要を読み、関連する virtual-scroll の動作を追跡します。ビューポートがリストの変更を反映し、ドキュメントがこの動作を説明していれば完了です。

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

評価

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

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

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