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

[Autocomplete][Joy] Fix types #35153

Merged
merged 2 commits into from Nov 15, 2022
Merged

Conversation

siriwatknp
Copy link
Member

Remove outdated AutocompleteRenderInputParams and get rid of typecasting.

@siriwatknp siriwatknp added component: autocomplete This is the name of the generic UI component, not the React module! package: joy-ui Specific to @mui/joy labels Nov 15, 2022
@mui-bot
Copy link

mui-bot commented Nov 15, 2022

Messages
📖 Netlify deploy preview: https://deploy-preview-35153--material-ui.netlify.app/

No bundle size changes

Generated by 🚫 dangerJS against dda60fa

Comment on lines 85 to 86
Omit<AutocompleteOwnerState<any, any, any, any>, 'color' | 'variant' | 'size'> &
Pick<IconButtonOwnerState, 'color' | 'variant' | 'size'>
Copy link
Member Author

Choose a reason for hiding this comment

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

Pick only the styling props from the IconButton to remove the above typecasting.

Copy link
Member

Choose a reason for hiding this comment

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

Why is IconButtonOwnerState needed here? ownerState is supposed to be the state of the owner - that is Autocomplete in this case.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, move them to props.

@michaldudak michaldudak merged commit 5eb6caf into mui:master Nov 15, 2022
the-mgi pushed a commit to the-mgi/material-ui that referenced this pull request Nov 17, 2022
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
feliperli pushed a commit to jesrodri/material-ui that referenced this pull request Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: autocomplete This is the name of the generic UI component, not the React module! package: joy-ui Specific to @mui/joy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants