-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deselect not firing event #224
Comments
@jameskerr hey, can we get some attention here and merge a fix asap? This is a critical issue that needs to be solved. It is reproducible on provided Demos, best visible on: https://react-arborist.netlify.app/cities on "Selected Items:" card counter |
Up |
Agree that this package should take care of this, but just noting that it's pretty easy to implement this when you have your own function CustomNode({
tree,
node,
style,
}: NodeRendererProps<MyCustomTreeItem>) {
// You can access tree.props.onSelect and do tree.props.onSelect(tree.selectedNodes) after a deselect
} |
Here is the bug demonstration: Sep-10-2024.17-32-45.mp4 |
On lines 341 to 345, there is a missing call to fire the
tree.onSelect
callback. This is preventing me from getting an updated list of selected nodes on deselection. I am using checkboxes for my implementation.This needs to be:
The text was updated successfully, but these errors were encountered: