fixed mobile scrolling issue on settings page (#953)
This commit is contained in:
parent
ea43f84347
commit
d5a91b5917
1 changed files with 4 additions and 0 deletions
|
@ -380,6 +380,10 @@ function SideNavigation(props: Props) {
|
|||
React.useEffect(() => {
|
||||
// $FlowFixMe
|
||||
document.body.style.overflowY = showOverlay ? 'hidden' : '';
|
||||
return () => {
|
||||
// $FlowFixMe
|
||||
document.body.style.overflowY = '';
|
||||
};
|
||||
}, [showOverlay]);
|
||||
|
||||
React.useEffect(() => {
|
||||
|
|
Loading…
Reference in a new issue