Skip to content

fix: MenuItem render function should not receive an href when not a link#10018

Open
devongovett wants to merge 1 commit intomainfrom
fix-menu-href
Open

fix: MenuItem render function should not receive an href when not a link#10018
devongovett wants to merge 1 commit intomainfrom
fix-menu-href

Conversation

@devongovett
Copy link
Copy Markdown
Member

Closes #9988

Our docs say that you should check if 'href' in domProps to conditionally render a link element, but this is currently always true (href is undefined). TypeScript is not smart enough to narrow the type when checking both conditions, so this PR removes the property entirely when it is not set on the input props.

@github-actions github-actions Bot added the RAC label May 6, 2026
@rspbot
Copy link
Copy Markdown

rspbot commented May 6, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants