Skip to content
Snippets Groups Projects
Commit f1c12d61 authored by Romain CREY's avatar Romain CREY
Browse files

fix: scroll on modal

parent aaf48658
No related branches found
No related tags found
1 merge request!61Dev
......@@ -23,6 +23,9 @@ const Modal: React.FC<ModalProps> = ({
useEffect(() => {
open ? disableBackgroundScroll(true) : disableBackgroundScroll(false)
return () => {
disableBackgroundScroll(false)
}
}, [open])
const closeClick = () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment