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

switch to reactDropHandler or customized dropHandler in vanilla SmoothDnD #78

Open
kenyxy opened this issue Jul 24, 2020 · 0 comments
Open

Comments

@kenyxy
Copy link

kenyxy commented Jul 24, 2020

smooth-dnd looks fantasic!
I intend to use the vanilla SmoothDnD instead of react-smooth-dnd, but I don't like SmoothDnD's default domDropHandler, I prefer to use reactDropHandler or customized dropHandler.
Is there is way to switch or provide a way to customize dropHandler?

I saw in https://github.com/kutlugsahin/react-smooth-dnd/blob/master/src/Container.tsx, there is a line to do the switching:
container.dropHandler = dropHandlers.reactDropHandler().handler
can you show me how with SmoothDnD?

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

1 participant