mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 05:01:22 +00:00
Update components/ui/Modal/Modal.tsx
Co-authored-by: Luis Alvarez D. <luis@vercel.com>
This commit is contained in:
parent
a613a977b1
commit
70b5aa7bbe
@ -39,7 +39,7 @@ const Modal: FC<Props> = ({ children, open, onClose, onEnter = null }) => {
|
||||
window.removeEventListener('keydown', handleKey)
|
||||
clearAllBodyScrollLocks()
|
||||
}
|
||||
}, [open])
|
||||
}, [open, handleKey])
|
||||
|
||||
return (
|
||||
<Portal>
|
||||
|
Loading…
x
Reference in New Issue
Block a user