mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(navbar): unable to Close NavbarMenu (#1496)
* add mode wait to AnimatePresence * add changeset
This commit is contained in:
parent
a3a95e7196
commit
e4113b05ce
5
.changeset/small-badgers-look.md
Normal file
5
.changeset/small-badgers-look.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@nextui-org/navbar": patch
|
||||
---
|
||||
|
||||
fix unable to close NavbarMenu
|
||||
@ -58,7 +58,7 @@ const NavbarMenu = forwardRef<"ul", NavbarMenuProps>((props, ref) => {
|
||||
</ul>
|
||||
</MenuWrapper>
|
||||
) : (
|
||||
<AnimatePresence>
|
||||
<AnimatePresence mode="wait">
|
||||
{isMenuOpen ? (
|
||||
<MenuWrapper>
|
||||
<motion.ul
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user