Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielchl committed Oct 25, 2024
1 parent 23b7bd3 commit 587b10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Tree/Tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const Tree = forwardRef((props: Props, ref: ForwardedRef<TreeRefObject>) => {
setIsFocusWithin(true);
const targetNode = e.target.closest('[data-nodeid]');
if (!!targetNode && targetNode.getAttribute('data-nodeid') !== activeNode) {
// if the user's focus is on a different tree node, then don't scroll to the current actie node
// if the user's focus is on a different tree node, then don't scroll to the current active node
return;
}
scrollToVTreeNode(activeNode);
Expand Down

0 comments on commit 587b10a

Please sign in to comment.