Skip to content

Commit

Permalink
fix(navbar): lazy motion forwardRef issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong committed Mar 15, 2024
1 parent 5a8768a commit 5253e39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/dirty-beans-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/navbar": patch
---

fixed LazyMotion ForwardRef issue
8 changes: 4 additions & 4 deletions packages/components/navbar/src/navbar-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ const NavbarMenu = forwardRef<"ul", NavbarMenuProps>((props, ref) => {
) : (
<AnimatePresence mode="wait">
{isMenuOpen ? (
<MenuWrapper>
<LazyMotion features={domAnimation}>
<LazyMotion features={domAnimation}>
<MenuWrapper>
<m.ul
ref={domRef}
layoutScroll
Expand All @@ -80,8 +80,8 @@ const NavbarMenu = forwardRef<"ul", NavbarMenuProps>((props, ref) => {
>
{children}
</m.ul>
</LazyMotion>
</MenuWrapper>
</MenuWrapper>
</LazyMotion>
) : null}
</AnimatePresence>
);
Expand Down

0 comments on commit 5253e39

Please sign in to comment.