no need to lock scrolling on mobile after jank fix
This commit is contained in:
parent
d790e981c4
commit
bd0fc36ea5
1 changed files with 1 additions and 8 deletions
|
@ -23,18 +23,11 @@ export default function MobileMenu() {
|
||||||
const setIsOpen = useMobileMenuState((state) => state.setIsOpen)
|
const setIsOpen = useMobileMenuState((state) => state.setIsOpen)
|
||||||
|
|
||||||
const handleClick = () => {
|
const handleClick = () => {
|
||||||
if (isOpen) {
|
setIsOpen(!isOpen)
|
||||||
document.body.style.overflow = 'auto'
|
|
||||||
setIsOpen(false)
|
|
||||||
} else {
|
|
||||||
document.body.style.overflow = 'hidden'
|
|
||||||
setIsOpen(true)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleSubmit = () => {
|
const handleSubmit = () => {
|
||||||
setIsOpen(false)
|
setIsOpen(false)
|
||||||
document.body.style.overflow = 'auto'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue