Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
yhy-1 committed Jun 14, 2023
1 parent 21cebbe commit 72a0bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TreeView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ const useTree = ({
const tabbableNode = nodeRefs.current[tabbableId];
const leafNode = leafRefs.current[lastInteractedWith];
scrollToRef(leafNode);
tabbableId === lastInteractedWith && focusRef(tabbableNode);
focusRef(tabbableNode);
}
}, [tabbableId, nodeRefs, leafRefs, lastInteractedWith]);

Expand Down

0 comments on commit 72a0bf8

Please sign in to comment.