Releases: lukasbach/react-complex-tree
Releases · lukasbach/react-complex-tree
2.6.0
Bug Fixes and Improvements
- If a tree environment renders without an item defined as focused in its
viewState
parameter, it will invoke theonFocusItem
prop with the first item in the tree during its render. In the past, this was implicitly and silently set in theviewState
prop,
now this assignment is triggered explicitly with the handler call (#363) - Fixed a bug where an additional invalid drop target would be available at the bottom-most location when dragging via keyboard interactions (#363)
2.5.0
Breaking Changes
- Changed default keybinding of
startProgrammaticDnd
toControl + Shift + D
(fromControl + D
) since the old
binding conflicted with the default browser behavior of bookmarking the current page. You can customize the
value with thekeyboardBindings
prop.
Bug Fixes and Improvements
- Improved keyboard-controlled drag and drop behavior to not show redundant drop target directly below opened folder item (#363)
- Fixed an issue where the
toggleSelectItem
(Ctrl + Space) hotkey could not be rebounded or disabled (#363)
Other Changes
- Added some documentation on the data structure required by a StaticDataProvider.
2.4.6
2.4.5
2.4.4
2.4.3
Features
- RTL mode can be used on default renderers, see docs for details (#369)
- Redirect focus to first item if focused item was dragged to hidden location (#362)
Bug Fixes and Improvements
2.4.2
2.4.1
Bug Fixes and Improvements
- Fixed a bug where items where sometimes inserted with inverted order. (#353)
- The
onDrop
should be a bit faster in general, since some redundant calls todataProvider.onChangeItemChildren
have been removed. In the past, this was called twice per item, once for moving the item out of its old folder, and once for moving it into the target folder. Now, all insertion calls into the target folder are batched into onedataProvider.onChangeItemChildren
call for all dragged items.
- The
2.4.0
Features
- Make drop target depth in last-of-subtree locations dependent on x-coordinates of the mouse, allowing the user to
drop in higher depths than the currently hovering item. This behavior is automatically used if renderDepthOffset
on the renderers is set to a non-zero value. (#148)
❤️ This development of this release was supported and sponsored by Modyfi. Thank you for contributing to the development of this library!
2.3.7
Featureset revertion to the state of 2.3.6
I've noticed that I've accidentally been pushing a few experimental releases that were meant to be released
as prerelease under the "Latest" tag in NPM. This reverts the latest release to the state of 2.3.6, the last
proper "latest" release. Prereleases will from now on be released under the "prerelease" tag in NPM.