fix(navbar): unable to Close NavbarMenu (#1496)

* add mode wait to AnimatePresence

* add changeset
This commit is contained in:
T/once 2023-08-26 21:29:27 +08:00 committed by GitHub
parent a3a95e7196
commit e4113b05ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@nextui-org/navbar": patch
---
fix unable to close NavbarMenu

View File

@ -58,7 +58,7 @@ const NavbarMenu = forwardRef<"ul", NavbarMenuProps>((props, ref) => {
</ul>
</MenuWrapper>
) : (
<AnimatePresence>
<AnimatePresence mode="wait">
{isMenuOpen ? (
<MenuWrapper>
<motion.ul