Skip to content

NavigationMenuContent when forceMount has no data-state attribute when used with NavigationMenuViewport #3786

@tholander

Description

@tholander

Bug report

Current Behavior

Currently when you use NavigationMenuContent with forceMount and a NavigationMenuViewport, the data-state attribute is not set on NavigationMenuContent.

Expected behavior

I think the NavigationMenuContent should always have the data-state attribute set.

Reproducible example

CodeSandbox Template

Suggested solution

The data-state attribute should be pass to ViewportContentMounter in NavigationMenuContent

Additional context

Your environment

Software Name(s) Version
Radix Package(s) @radix-ui/react-navigation-menu 1.2.14
React n/a 19.2.0
Browser Chrome 143.0.7499.170
Assistive tech n/a
Node n/a
npm/yarn/pnpm npm 10.9.3
Operating System MacOS 26.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions