Patch Changes
- #2328 by @reinvanimschoot –
- add an optional
onDropHandler
to thedraggableProps
property. This handler takes the same arguments as thedrop
function in theuseDropNode
hook and should returnboolean
.If the function returnstrue
, the default onDropNode behavior will not be called since it would be considered handled. If the function returnsfalse
, the default onDropNode will be triggered. - add an
editorId
property to thedragItem
property so there is always a reference to the editor from which the item was dragged. This allows for better support and more control when working with nested editors.
- add an optional