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 handleClick = () => {
|
||||
if (isOpen) {
|
||||
document.body.style.overflow = 'auto'
|
||||
setIsOpen(false)
|
||||
} else {
|
||||
document.body.style.overflow = 'hidden'
|
||||
setIsOpen(true)
|
||||
}
|
||||
setIsOpen(!isOpen)
|
||||
}
|
||||
|
||||
const handleSubmit = () => {
|
||||
setIsOpen(false)
|
||||
document.body.style.overflow = 'auto'
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue