Skip to content

Commit

Permalink
[@mantine/hooks] useFocusWithin: Fix Dependency Array (mantinedev#2178)
Browse files Browse the repository at this point in the history
  • Loading branch information
ALMaclaine authored and nmay231 committed Aug 22, 2022
1 parent c157981 commit 863cb31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantine-hooks/src/use-focus-within/use-focus-within.ts
Expand Up @@ -51,7 +51,7 @@ export function useFocusWithin<T extends HTMLElement = any>({
}

return undefined;
}, []);
}, [handleFocusIn, handleFocusOut]);

return { ref, focused };
}

0 comments on commit 863cb31

Please sign in to comment.