frontend-collective / frontend-collective/react-sortable-tree

You may not call monitor.canDrop() inside your canDrop() implementation

Open
#267 15 comments 0 reactions 0 assignees View on GitHub
bug investigate
Dominant language
JavaScript
Stars
5k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

In `canDrop`, before returning `false`, we want to update state to display notification about why it can't be dropped, but got this error:

`Uncaught Error: You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html`

Is there a way to deal with it or may be a callback function?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.