bug(cdkTable): virtual scroll does not work for tables with cdkRowDefWhen

オープン
#32,670 コメント 5 件 リアクション 5 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

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

調査の方向性

リンクされている StackBlitz の cdk-table-virtual-scroll-example から始め、Angular 21.1 に更新して実行し、テーブルをスクロールして問題を再現します。複数の cdkRowDefWhen 定義を使用した virtual scroll テーブルの動作を追跡します。再利用された行が、virtual scroll なしの場合と同じようにプロパティを表示すれば完了です。

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

説明

area: cdk/table feature P3
Is this a regression?
  • Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was

No response

Description

Virtual scroll does not work for tables with multiple cdkRow definitions. Properties remain undefined when a line from another definition is reused.

Reproduction

StackBlitz link: cdk-table-virtual-scroll-example
Steps to reproduce:

  1. download and update the project to Angular 21.1 (sorry, I struggled with updating on StackBlitz)
  2. run the project and scroll the tables down
Expected Behavior

See the lines as if there were no virtual scroll.

Actual Behavior

Rows that have reused a row of the other definition doesn't show their property. It is undefined.

Environment
  • Angular: 21.1.0
  • CDK/Material: 21.1.0
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):
主要言語
TypeScript
スター
25k
フォーク
6.9k
平均マージ
2日 7時間
マージ済み PR(30日)
83

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

angular/components のほかの issue

angular/components の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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