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 28, 2022
1 parent 98f83d8 commit 93cb09d
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 93cb09d

Please sign in to comment.