Stabilize expanded image keyboard listener
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
19adca2085
commit
0e1d87f791
1 file changed
+1
-1
@@ -68,7 +68,7 @@ function useExpandedImageKeyboardShortcuts(input: {
|
||||
useEffect(() => {
|
||||
window.addEventListener("keydown", onKeyDown);
|
||||
return () => window.removeEventListener("keydown", onKeyDown);
|
||||
}, [onKeyDown]);
|
||||
}, []);
|
||||
}
|
||||
|
||||
export const ExpandedImageDialog = memo(function ExpandedImageDialog({
|
||||
|
||||
Reference in new issue
Block a user