github udecode/plate @udecode/plate-ui-dnd@20.6.4

latest releases: @udecode/plate-selection@39.3.7, @udecode/plate@39.3.7, @udecode/plate-ai@39.3.7...
19 months ago

Patch Changes

  • #2328 by @reinvanimschoot
    • add an optional onDropHandler to the draggableProps property. This handler takes the same arguments as the dropfunction in the useDropNode hook and should return boolean.If the function returns true, the default onDropNode behavior will not be called since it would be considered handled. If the function returns false, the default onDropNode will be triggered.
    • add an editorId property to the dragItem 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.

Don't miss a new plate release

NewReleases is sending notifications on new releases.