components icon indicating copy to clipboard operation
components copied to clipboard

drag and drop with more than 2 vertical stacked lists don't always work

Open cmcclellen opened this issue 6 years ago • 4 comments

Reproduction

https://stackblitz.com/edit/angular-gytt6j

Steps to reproduce:

  1. Drag an item from Todo down to done2.
  2. Drop the item right in the box of done2

Expected Behavior

Item drops to done2.

Actual Behavior

Item drops in the middle (wrong) list.

What seems to happen is that when you move an item out of the todo list, the various elements on the screen move up when the item leaves the drop zone of todo. However, it appears that the drop zones for done and done2 are still in their original positions. So, if you try to drop where done2 is now visually, it doesn't drop where its supposed to. If you drop the item where done2 WAS before everything moved up, it will work.

Environment

  • Angular: 8.2.14
  • CDK/Material: 8.2.3
  • Browser(s): Chrome 79
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

see gif: captured (1)

edit: added gif

cmcclellen avatar Jan 27 '20 21:01 cmcclellen

Also, there is other strange behavior. If you move a single item from todo down into Done, then drag a 2nd item into done, you can get it to where you absolutely cannot drop it as the first item -- it will only let you drop it as the second item. You have to drop it, then pick it up again if you want to move it to the top of done.

Very strange.

See attached gif: captured

cmcclellen avatar Jan 28 '20 18:01 cmcclellen

Reverting to CDK 7.2.0 seems to make things behave much better. Tried 7.2.2 and it still had this kind of behavior.

cmcclellen avatar Jan 28 '20 19:01 cmcclellen

Duplicate of https://github.com/angular/components/issues/14703.

crisbeto avatar Jul 12 '20 09:07 crisbeto

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.