Skip to content

Issue with <Navigation.Item /> selected prop #4244

@aurelienbobenrieth

Description

@aurelienbobenrieth

Issue summary

selected prop for <Navigation.Item /> component is not working if url prop is not provided.

Expected behavior

Since it is not written in the doc that the url prop is required, using the selected prop without it should work just fine.
I wanted to use the onClick prop to handle my routing, combined with the selected prop for the UI, but it is not possible.

Actual behavior

If you use selected without url, the selected is totally ignored.

Metadata

Metadata

Assignees

Labels

BugSomething is broken and not working as intended in the system.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions