Update components/ui/Modal/Modal.tsx

Co-authored-by: Luis Alvarez D. <luis@vercel.com>
This commit is contained in:
B 2021-01-06 19:24:11 -03:00 committed by GitHub
parent a613a977b1
commit 70b5aa7bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ const Modal: FC<Props> = ({ children, open, onClose, onEnter = null }) => {
window.removeEventListener('keydown', handleKey) window.removeEventListener('keydown', handleKey)
clearAllBodyScrollLocks() clearAllBodyScrollLocks()
} }
}, [open]) }, [open, handleKey])
return ( return (
<Portal> <Portal>