How do I tell if a drag and drop event succeeded?

The on drop event states that it fires regardless of if a widget handles it or not, therefore event on drag canceled always gets fired. I’m very confused about how to handle events where we drop onto something that’s not set up to handle the drop.

implement the OnDrop and just return a false or unhandled

Thank you for the reply - I have onDrop implemented on the widgets that need to receive the drop, but I’m unsure what you mean when you say return false or unhandled? I see that there’s a function in widget:event reply called handled, but I’m not sure what to do with it or where to put it - plus I can’t figure out what sort of data it returns (can’t seem to hook it up to anything or compare against it)

I know this is an old thread, but I found it useful, here my Event On Drag Cancelled was being called everytime, even on handled drops. So as suggested you can check the return value as below, depending on your logic:
image
Return Value unchecked: Event On Drag Cancelled will not run
Return Value checked: Event On Drag Cancelled will run