mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(navbar): lazy motion forwardRef issue (#2527)
This commit is contained in:
parent
5a8768a4b2
commit
707a61de4c
5
.changeset/dirty-beans-repair.md
Normal file
5
.changeset/dirty-beans-repair.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@nextui-org/navbar": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fixed LazyMotion ForwardRef issue
|
||||||
@ -60,8 +60,8 @@ const NavbarMenu = forwardRef<"ul", NavbarMenuProps>((props, ref) => {
|
|||||||
) : (
|
) : (
|
||||||
<AnimatePresence mode="wait">
|
<AnimatePresence mode="wait">
|
||||||
{isMenuOpen ? (
|
{isMenuOpen ? (
|
||||||
<MenuWrapper>
|
<LazyMotion features={domAnimation}>
|
||||||
<LazyMotion features={domAnimation}>
|
<MenuWrapper>
|
||||||
<m.ul
|
<m.ul
|
||||||
ref={domRef}
|
ref={domRef}
|
||||||
layoutScroll
|
layoutScroll
|
||||||
@ -80,8 +80,8 @@ const NavbarMenu = forwardRef<"ul", NavbarMenuProps>((props, ref) => {
|
|||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</m.ul>
|
</m.ul>
|
||||||
</LazyMotion>
|
</MenuWrapper>
|
||||||
</MenuWrapper>
|
</LazyMotion>
|
||||||
) : null}
|
) : null}
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user