Skip to content

[bug]: NavigationMenuContent is using a single reusable <div> instead of generating a separate one for each NavigationMenuItem #8320

@ardiansyaherwin

Description

@ardiansyaherwin

Describe the bug

"@radix-ui/react-navigation-menu": "^1.2.14",

I just installed the component and tried implementing the example code from the documentation. However, all the submenus are rendering within the same

for NavigationMenuContent, whereas the documentation shows that each NavigationMenuItem should have its own NavigationMenuContent.

Affected component/components

NavigationMenu

How to reproduce

  1. install with pnpm dlx shadcn@latest add navigation-menu
  2. copy and pasted the example from https://ui.shadcn.com/docs/components/navigation-menu
  3. pnpm run dev

Codesandbox/StackBlitz link

No response

Logs

System Info

Arc on MacOS

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions