fix(ui) - modal scroll issue
This commit is contained in:
parent
de9b14c80d
commit
2162fd0f4d
1 changed files with 2 additions and 1 deletions
|
|
@ -13,7 +13,8 @@ function Modal(props: Props) {
|
|||
useEffect(() => {
|
||||
if (open) {
|
||||
document.body.style.overflow = 'hidden';
|
||||
} else {
|
||||
}
|
||||
return () => {
|
||||
document.body.style.overflow = 'auto';
|
||||
}
|
||||
}, [open]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue