We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c9518 commit bcdecd4Copy full SHA for bcdecd4
components/dashboard/src/components/Modal.tsx
@@ -41,7 +41,8 @@ export default function Modal(props: {
41
return () => {
42
window.removeEventListener('keydown', handler);
43
};
44
- }, []); // Empty array ensures that effect is only run on mount and unmount
+ // eslint-disable-next-line react-hooks/exhaustive-deps
45
+ }, [props.onClose, props.onEnter]);
46
47
if (!props.visible) {
48
return null;
0 commit comments