-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Disable dnd #473
Comments
I'm not sure I understand your question. Do you want to prevent a component from being dragged in some cases? If so, you could implement this by giving your component a prop // drag source spec
{
...
canDrag: function(props, monitor) {
return props.canDrag;
},
...
} Then you can either render your component with <MyComponent canDrag={true} />
<MyComponent canDrag={false} /> Let me know if you meant something else. |
Hey @maxcc0, it looks like your issue has been resolved with the above sample (which is what I was going to recommend before I saw it had already been posted!). Feel free to open a new issue or comment here if you have more questions! |
@froatsnook @kesne Thank you. |
it will be calling |
Is there a hook with which dnd can be disabled? I'm trying to reuse a dnd component and want to disable dnd.
The text was updated successfully, but these errors were encountered: