onDragEnd should be called after an items drop animation finishes.
onDragEnd is not called, if the drop animation does not move the Draggable with transform: translate.
Get the transform: translate property of the Draggable before it is dropped and overwrite the transform value in provided.draggableProps.style. This can be achieved, for example, by adding a second ref to the element inside of the Draggable.
I did not find any logic in the code that might cause this. How ever I'm quite new to the code base so I might have just missed it.
React are you using?16.12.0
react-beautiful-dnd are you running?12.2.0
Latest Chrome
See App.js lines 17-19 to see the issue.
Draggable from the yellow Droppable to the cyan one. onDragEnd is not called.https://codesandbox.io/s/naughty-ganguly-ildb8
I wanted to create a "trash drop" area, where I can drop things to be deleted. It won't store anything, so the default animation does not make sense.
I also noticed OnDragEnd gets called once you scroll in your example.
Most helpful comment
I also noticed OnDragEnd gets called once you scroll in your example.