We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Great work on this component it is very clean and user friendly! I need to write some validation for handling drag and drop events.
Is there a way to reject a drop that would put the dragged element back in its original place?
The text was updated successfully, but these errors were encountered:
Hi! Thank you! I appreciate your feedback.
No, the move event doesn't provide a way to cancel a drop that happened. But the canDrop prop allows to prevent the dragOver event on some items:
move
canDrop
dragOver
const canDrop = (targetId, draggedId) => { // Return false if the dragged item cannot be dropped on the target item };
Sorry, something went wrong.
No branches or pull requests
Great work on this component it is very clean and user friendly! I need to write some validation for handling drag and drop events.
Is there a way to reject a drop that would put the dragged element back in its original place?
The text was updated successfully, but these errors were encountered: