angular / angular/components

cdkDropList events not triggered within a mat-table row

オープン
#15,949 コメント 6 件 リアクション 1 件 担当者 0 名 GitHub で見る
area: cdk/drag-drop area: material/table feature P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

#### What is the expected behavior?
When the table row is set to cdkDropList it should treat cdkDrag items within the row as list items, reordering where necessary and triggering cdkDropListDropped on release

#### What is the current behavior?
mat-header-cells with the cdkDrag property inside a cdkDropList mat-header-row are behaving as if they are normal cdkDrag items without a cdkDropList.

#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-3x3fbt

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
9.1.3

#### Is there anything else we should know?
Similar issue: https://github.com/angular/components/issues/13770

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

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

調査の方向性

リンクされている StackBlitz の再現例から始め、mat-table のヘッダー行内で cdkDropList と cdkDrag がどのように相互作用するかを調査してください。同様の issue #13770 と動作を比較し、その行が mat-header-cell のドラッグをリスト項目として扱っているか確認してください。並べ替えが機能し、離したときに cdkDropListDropped が発火すれば完了です。

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

評価

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

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

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