Skip to content

Releases: lukasbach/react-complex-tree

2.6.2

Choose a tag to compare

@github-actions github-actions released this 24 Jun 11:54
<!--
### Breaking Changes

### Features

### Bug Fixes and Improvements
- Fixes an issue where drag and drop between trees was not working after remount of the target tree(#258)

### Other Changes
-->

2.6.1

Choose a tag to compare

@github-actions github-actions released this 08 Oct 00:11

Bug Fixes and Improvements

  • switch JSX.Element to React.ReactElement to support React 19 and 18 (#437)

2.6.0

Choose a tag to compare

@github-actions github-actions released this 14 Mar 15:31

Bug Fixes and Improvements

  • If a tree environment renders without an item defined as focused in its viewState parameter, it will invoke the onFocusItem
    prop with the first item in the tree during its render. In the past, this was implicitly and silently set in the viewState 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

Choose a tag to compare

@github-actions github-actions released this 11 Mar 21:37

Breaking Changes

  • Changed default keybinding of startProgrammaticDnd to Control + Shift + D (from Control + D) since the old
    binding conflicted with the default browser behavior of bookmarking the current page. You can customize the
    value with the keyboardBindings 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

Choose a tag to compare

@github-actions github-actions released this 18 Nov 21:04

Bug Fixes and Improvements

  • Don't show drag line when dragging outside of the tree container (#417)
  • Fix a bug where items where dropped on the last valid position when dragging items on an invalid position and then dropping (#417)

2.4.5

Choose a tag to compare

@github-actions github-actions released this 05 Aug 00:36

Breaking Changes

Features

Bug Fixes and Improvements

  • Fix problem with expandSubsequently resolving before expanding all items (#403)
  • Improve behavior for cases where item containers have margin (#404)

Other Changes

2.4.4

Choose a tag to compare

@github-actions github-actions released this 18 May 14:30

Features

  • Introduce disableArrowKeys prop on tree environment to disable arrow-related hotkeys (#363)

2.4.3

Choose a tag to compare

@github-actions github-actions released this 30 Apr 21:00

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

  • Fixes an issue where not providing a submit button ref in a custom rename input renderer would prevent dismissing the input on blur (#368)
  • Fixes an issue where dropping an item on its children was possible through keyboard-based dragging (#363)

2.4.2

Choose a tag to compare

@github-actions github-actions released this 04 Apr 14:09

Bug Fixes and Improvements

  • Fixed an issue where sometimes the uncontrolled tree environment would throw undefined-access errors (#355)

2.4.1

Choose a tag to compare

@github-actions github-actions released this 27 Mar 23:23

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 to dataProvider.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 one dataProvider.onChangeItemChildren call for all dragged items.