Skip to content

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

Open
@zourbuth

Description

@zourbuth

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions