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 |
Bug report
Current Behavior
Currently when you use
NavigationMenuContentwithforceMountand aNavigationMenuViewport, thedata-stateattribute is not set onNavigationMenuContent.Expected behavior
I think the
NavigationMenuContentshould always have thedata-stateattribute set.Reproducible example
CodeSandbox Template
Suggested solution
The
data-stateattribute should be pass toViewportContentMounterin NavigationMenuContentAdditional context
Your environment