Apr 21, 2025
- Incorrect element detection for
dropTargetclass.
Jan 13, 2025
- Made
listItemkey inclassesAPI support callback function.
- Drop is canceled even though placeholder is visible.
- React v17 is no longer supported.
Mar 23, 2023
- Can not open a node with
droppableset tofalsewith theopenmethod.
Mar 15, 2023
openAllmethod andinitialOpenAPI don't work for non-droppable node.
Mar 9, 2023
canDropAPI is not called when dragging an external node over a tree.
Dec 31, 2022
- Improved performance when
enableAnimateExpandistrue.
Nov 29, 2022
- Added
enableAnimateExpandAPI to support open/close animation.
Nov 2, 2022
- Added
relativeIndexto options passedonDropcallback.
Oct 31, 2022
- Nodes may not be draggable.
Oct 19, 2022
- The URL of the demo page listed in the README is incorrect.
Oct 05, 2022
- Added
handleRefto Render params to support dragging with handle. - Added React 17.x and React DnD 15.x to peer dependencies.
- Changed all parameters of
getBackendOptionsto optional.
- Rollup bundling process does not handle "~" alias.
Sep 08, 2022
- Added
onDragStartandonDragendAPIs for handling the start and end of node dragging. - Added Multiple drag sample.
Aug 12, 2022
- Nodes can now be added by dropping elements outside the tree, files, selected text, etc. into the tree.
- Among the
optionspassed to theonDropcallback,dragSourceIdanddragSourceare now optional.
If the drag source is an element external toDndProvideror a file or selected text, these will beundefined.
June 29, 2022
- If the
initialOpenproperty is updated, the open state of the tree will be updated.
June 15, 2022
-
Error using require to import from
react-dndandreact-dnd-html5-backend.Since
react-dndandreact-dnd-html5-backendare now distributed only in ESM format, this package is also provided only in ESM format and the package type has been changed to module.
May 15, 2022
- Migrated examples to Storybook.
-
Exclude
react-dndfrom this packagereact-dndis no longer included in this package, so users of this package must separately install the latest version ofreact-dndand importDndProvider.
Jan 07, 2022
- DragPreview component is momentarily displayed in the upper left corner of the screen after the drag operation is completed.
Nov 18, 2021
- Added
isDraggingandisDropTargetflags to the options passed to the render callback. - Added a reference to the wrapper element to the options passed to the render callback. (
options.containerRef)
Nov 08, 2021
- If the
sortproperty is set tofalse, add andestinationIndexproperty to the options passed to theonDropcallback to indicate where to move the node. - A utility function has been added to get descendant nodes.
- Added demos for adding, removing, and duplicating nodes.
- Update sample code of basic usage.
- If the
sortproperty is notfalse, then the order of the tree array passed to theonDropcallback will be preserved. - The new node array passed to the
onDropcallback is no longer read-only.
Oct 27, 2021
- generic type cannot be used in sort callback.
Oct 07, 2021
- add
rootPropsAPI.
Oct 01, 2021
- react-dnd version is mismatch with dependent packages.
Sept 29, 2021
- dragging not possible after editing a node without hovering in Firefox or Safari.
Sept 24, 2021
- unable to install in npm version 7.
Sept 08, 2021
- add
classes.listItemproperty for styling node wrapper.
Aug 22, 2021
- add
onChangeOpenAPI.
Aug 19, 2021
- add APIs for manual sort and placeholder
- add open / close methods for control open state of nodes.
- type inference for custom data types is not working.
July 17, 2021
- incorrect parameters passed to the canDrop callback.
- mouse cursor becomes the default pointer when hovering over an area that cannot be dropped.
July 08, 2021
- add
canDragAPI to control dragging.
- unable to select text in a text field in a node by mouse dragging.
June 02, 2021
- support touch device.
Apr 22, 2021
- update all dependencies.
Apr 20, 2021
- fail drop into root container when
rootIdis string. - dropTarget in canDrop parameter is incrrect.
Apr 12, 2021
- add
canDropAPI.
Apr 05, 2021
- add
hasChildargument to render function.
Apr 02, 2021
- add initialOpen API to control the opening and closing state of the node in the initial state of the component.
- add sort API to control the sorting of nodes.
Jan 25, 2021
Initial major release.