Skip to content

[useAutocomplete] Use React.Key instead of any for key prop#47619

Merged
ZeeshanTamboli merged 2 commits intomui:masterfrom
sonixx02:fix-useAutocomplete-react-key
Jan 15, 2026
Merged

[useAutocomplete] Use React.Key instead of any for key prop#47619
ZeeshanTamboli merged 2 commits intomui:masterfrom
sonixx02:fix-useAutocomplete-react-key

Conversation

@sonixx02
Copy link
Contributor

Fixes #47604

@mui-bot
Copy link

mui-bot commented Jan 14, 2026

Netlify deploy preview

https://deploy-preview-47619--material-ui.netlify.app/

Bundle size report

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 0208b2c

@zannager zannager added the scope: autocomplete Changes related to the autocomplete. This includes ComboBox. label Jan 14, 2026
@zannager zannager requested a review from mj12albert January 14, 2026 13:51
@ZeeshanTamboli ZeeshanTamboli changed the title fix(useAutocomplete): use React.Key instead of any [useAutocomplete] Use React.Key instead of any for key prop Jan 15, 2026
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@ZeeshanTamboli ZeeshanTamboli added the type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. label Jan 15, 2026
@ZeeshanTamboli ZeeshanTamboli merged commit e287e53 into mui:master Jan 15, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: autocomplete Changes related to the autocomplete. This includes ComboBox. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[useAutocomplete] Setting the key as shown in the docs, triggers @typescript-eslint/no-unsafe-assignment

4 participants