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

Drag and Drop without Clone or Move? #2024

Open
gregg-cbs opened this issue Apr 2, 2021 · 3 comments
Open

Drag and Drop without Clone or Move? #2024

gregg-cbs opened this issue Apr 2, 2021 · 3 comments

Comments

@gregg-cbs
Copy link

Hi,

Im hoping you can guide me here, i cant seem to figure this out.

I am using sortable.js in react.
I want to drag an item from 1 column into another but i dont want the item to move or clone, i just want to handle the drop event so I can make a request that will update the data which react uses to refresh the dom which will put the item in the column it was dropped in.

react freaks out when the dom is updated externally so im running into issues.

any help will be greatly appreciated and thank you for this awesome lib.

@hb0nes
Copy link

hb0nes commented Jul 20, 2021

Yes I would also like to move to catch the drop event, to create a garbage bin to drag items into

@yaolunmao
Copy link

You may need to delete dom yourself

@gregg-cbs
Copy link
Author

gregg-cbs commented Feb 23, 2022

I ended up using react-beautiful-dnd which allowed me to achieve the desired effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants