Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dragged cdkDrag to stay visible in source list when entering another cdkDropList #17838

Harpush opened this issue Nov 29, 2019 · 0 comments


Copy link

@Harpush Harpush commented Nov 29, 2019

Feature Description

Currently when dragging an item from a cdkDropList to another the item will get removed (visually) from the source list and enter the target list.
I want an option to allow the item to stay visible in the source list even when appearing in the target list.
The basics are already there - we can disable sorting and use the copy helper method but the missing part is the visual part.
Seems to me like instead of appending (remove from source and add to target) a new option for "copy" can be added.

Use Case

In my case i want something like a repository allowing to drag elements from one list to another while the source list doesn't get modified. The idea is having a list of possible controls which i can drag and each control can be dragged multiple times so it makes no sense to remove it visually and add it back once the item is placed.

Here is an example that theoretically works but when the preview is small and the lists are one on top of the other the dragging measurements are wrong (exactly the size of the inserted item):

@Harpush Harpush added the feature label Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.