Skip to content

Bug - Drag & Drop - Dragging Last Item Back Into Initial Dropsite Breaks State #12251

Closed
@drewwiens

Description

@drewwiens

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When only one item remains in a drop site, it should be returned to the initial drop site when dragged into another drop site and back again before mouseup.

What is the current behavior?

The item is not returned to the initial dropsite.

What are the steps to reproduce?

In the demo (https://material-cb7ec.firebaseapp.com/drag-drop) drag all items except the last one into 'Done'. For the last item, drag it into 'Done' and back into 'To do' before lifting the mouse button.

After doing this, the state will show the last item still exists in the 'To do' column, however it is put into the 'Done' column on the screen.

What is the use-case or motivation for changing an existing behavior?

The user should be able to change their mind while dragging the last item.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions