I am having real trouble finding the problem here, but at the same time, I am pretty sure it’s not a problem with react-dnd directly, but the implementation details of the react components.
I am posting the codesandbox link that I have reproduced the same issue from my code.
The strange part here is that canDrop
and isOver
and all the other parts are working as expected, the only problem here is monitor.didDrop()
.
I have already tested a lot of cases and it’s not an issue with a specific version of the libraries.