Unopinionated Accessible Tree Component with Multi-Select and Drag-And-Drop
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.❤️ This development of this release was supported and sponsored by Modyfi. Thank you for contributing to the development of this library!
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.
renderDepthOffset
on the renderers is set to a non-zero value. (#148)
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)shouldRenderChildren
prop. This can be used to
create opening and closing animations on subtrees. See Demo
and Demo Implementation for details. (#333)parentId
property in the renderItemsContainer
render method was incorrectly set to the tree id
for the root container.renderDepthOffset
on the renderers is set to a non-zero value. (#148)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)shouldRenderChildren
prop. This can be used to
create opening and closing animations on subtrees. See Demo
and Demo Implementation for details. (#333)parentId
property in the renderItemsContainer
render method was incorrectly set to the tree id
for the root container.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)shouldRenderChildren
prop. This can be used to
create opening and closing animations on subtrees. See Demo
and Demo Implementation for details. (#333)parentId
property in the renderItemsContainer
render method was incorrectly set to the tree id
for the root container.