Skip to content

Commit 0b8577f

Browse files
authored
Fix: Deselect not firing select event (#289)
1 parent aba9953 commit 0b8577f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/react-arborist/src/interfaces/tree-api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ export class TreeApi<T> {
342342
if (!node) return;
343343
const id = identify(node);
344344
this.dispatch(selection.remove(id));
345+
safeRun(this.props.onSelect, this.selectedNodes);
345346
}
346347

347348
selectMulti(identity: Identity) {

0 commit comments

Comments
 (0)