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(() => {
|
React.useEffect(() => {
|
||||||
// $FlowFixMe
|
// $FlowFixMe
|
||||||
document.body.style.overflowY = showOverlay ? 'hidden' : '';
|
document.body.style.overflowY = showOverlay ? 'hidden' : '';
|
||||||
|
return () => {
|
||||||
|
// $FlowFixMe
|
||||||
|
document.body.style.overflowY = '';
|
||||||
|
};
|
||||||
}, [showOverlay]);
|
}, [showOverlay]);
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
|
|
Loading…
Reference in a new issue