Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TypeScript] Fix <MenuItemLink> prop type should omit placeholder #9555

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

smeng9
Copy link
Contributor

@smeng9 smeng9 commented Jan 4, 2024

With this merge request DefinitelyTyped/DefinitelyTyped#67170 introduced into @types/react 18.2.43, placeholder prop is no longer in HTMLAttributes.

Somehow since 18.2.43 the <MenuItemLink> requires us to pass the placeholder prop to the <a> tag below, where there are no such prop defined in MDN Docs

Closes #9507

@djhi djhi added this to the 4.16.5 milestone Jan 4, 2024
@djhi djhi merged commit 1fb781e into marmelab:master Jan 4, 2024
@djhi
Copy link
Collaborator

djhi commented Jan 4, 2024

Thanks!

@smeng9 smeng9 deleted the fix-menuitemlink-type branch January 4, 2024 10:56
@slax57 slax57 changed the title Fix <MenuItemLink> type by omitting placeholder prop [TypeScript] Fix <MenuItemLink> prop type should omit placeholder Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v4 typescript] <MenuItemLink> seems now have missing placeholder prop
3 participants