Skip to content

Commit

Permalink
Add onMouseLeave
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonking committed Jul 19, 2022
1 parent 26eaaea commit 41bee23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clients/admin-ui/src/features/common/AccordionTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ const AccordionTree = ({ nodes }: Props) => {
onMouseEnter: () => {
setHoverNode(node);
},
onMouseLeave: () => {
setHoverNode(undefined);
},
};

if (node.children.length === 0) {
Expand Down

0 comments on commit 41bee23

Please sign in to comment.