angular / angular/components

feat(drag-drop): add option for items to be returned to original list if not dropped on container

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

説明

#### Steps to reproduce:
1. Have 2 drop containers.
2. Drag item from one container.
3. Move over the items of the other container
4. Move outside any container.
5. Release button.

#### Expected Behavior
The item should transform to initial container and initial position.

#### Actual Behavior
The item transforms to the position of the last hovered item of the last entered container.

#### Environment
- Angular: 9.0.2
- CDK/Material: 9.1.0
- Browser(s): Google Chrome Version 80.0.3987.116
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 10 Pro

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

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

調査の方向性

まず、issue に記載されている 2 つのドロップコンテナを使ったドラッグシナリオを再現し、その後、Angular CDK drag-drop API と、コンテナから離れたときの動作を調査します。コンテナ外でリリースされたときに、設定可能なオプションによってアイテムが元のコンテナと位置に戻り、デフォルトでは既存の動作が変わらないことを確認できれば完了です。

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

評価

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

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

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