Fixed an issue where sometimes the uncontrolled tree environment would throw undefined-access errors (#355)
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 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.
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.
2.3.7-alpha.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 also applies when dropping at the top of an item where the item prior is of deeper depth, meaning that
in this case the decision of dropping into the container above or directly above the hovering item will depend
on the x-coordinate of the mouse.
Add setDomFocus argument to focus-item methods to provide an escape hatch to set the focus state of an item in RCT
without updating the DOM focus. This defaults to true in all existing methods to maintain the current behavior if
it is absent. (#336)
Allow customizing when a subtree is rendered or not with the new shouldRenderChildren prop. This can be used to
create opening and closing animations on subtrees. See Demo
and Demo Implementation for details. (#333)
Bug Fixes
Fix a bug where the parentId property in the renderItemsContainer render method was incorrectly set to the tree id
for the root container.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps react-complex-tree from 2.3.5 to 2.4.2.
Release notes
Sourced from react-complex-tree's releases.
Commits
02ef311
v2.4.26ad1edb
fix(uncontrolled-tree-env): add additonal optional chaining for undefined (#356)c3e697c
v2.4.1677cfd0
chore: fix testf613976
chore: add refocusing to story (#328)38d6c95
fix: rewrote onDrop handler to account for insertion order issues (#353)9f2dc97
v2.4.0ad85d67
Merge branch 'main' into feat/148-dnd-rework55e860f
v2.3.7b899b5a
v2.3.7-alpha.1Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show