fixed mobile scrolling issue on settings page (#953)

This commit is contained in:
Max Kotlan 2022-02-24 12:14:01 -05:00 committed by GitHub
parent ea43f84347
commit d5a91b5917
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(() => {