angular / angular/components

[dragDrop] On strict movement when dropping outside cdkDropList

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

説明

#### Feature Description

There is one problem with this, because of some action after dragging on cdkDragDrop.

1. Drag the item.
2. Go through the drop zone.
3. Drop outside the drop zone.

In the case of dragDrop in angular / cdk, when dropping outside the drop zone, the item moves to the last drop zone where the item was entered.

![cdk](https://user-images.githubusercontent.com/4124275/66533466-f19b3280-eb4d-11e9-8b2d-ab99a3024761.gif)

In the dragula, apart from entering the drop zone, it returns to its original state when dropped outside the drop zone.

![dragula](https://user-images.githubusercontent.com/4124275/66533465-f1029c00-eb4d-11e9-9c01-f486d3d53e5b.gif)

Therefore, it would be nice to provide an strict method of returning to angular / cdk dragdrop as an option.

Please let me know if there is a way around this.

thank you

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

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

調査の方向性

まず、Angular CDK drag-and-drop で報告されたドラッグ操作のシーケンスを再現します。cdkDropList に入り、その後、外側にドロップします。結果を元の位置に戻るという期待される動作と比較し、既存の drag-and-drop の挙動と、合意された API に向けた議論を確認します。厳密な挙動をオプションとして利用でき、テストでカバーされていれば完了です。

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

評価

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

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

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