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][material][joy] Add default getOptionLabel prop in ownerState #38100

Merged

Conversation

DSK9012
Copy link
Contributor

@DSK9012 DSK9012 commented Jul 22, 2023

Fixes #38048

Default getOptionLabel can now accessed in ownerState If not provided as custom prop.

@mui-bot
Copy link

mui-bot commented Jul 22, 2023

Netlify deploy preview

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

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 60dc9c9

@DSK9012
Copy link
Contributor Author

DSK9012 commented Jul 22, 2023

@ZeeshanTamboli
Please review this.

I couldn't add labels here. Check is failing.
And I see lint issue is not related to current changes. Its related to old files due to filename casing issue. Do you want me to fix that?

@mj12albert mj12albert added the component: autocomplete This is the name of the generic UI component, not the React module! label Jul 24, 2023
@ZeeshanTamboli ZeeshanTamboli added bug 🐛 Something doesn't work package: material-ui Specific to @mui/material package: joy-ui Specific to @mui/joy labels Jul 27, 2023
@ZeeshanTamboli ZeeshanTamboli changed the title [Autocomplete] Default getOptionLabel in renderOption prop ownerState… [Autocomplete] Add default getOptionLabel prop in ownerState Jul 27, 2023
@ZeeshanTamboli ZeeshanTamboli changed the title [Autocomplete] Add default getOptionLabel prop in ownerState [Autocomplete][material][joy] Add default getOptionLabel prop in ownerState Jul 27, 2023
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.

I made the remaining changes.

@DSK9012 Thanks for the pull request! It's a great first PR at MUI!

@ZeeshanTamboli ZeeshanTamboli merged commit 418f239 into mui:master Jul 27, 2023
21 checks passed
@DSK9012
Copy link
Contributor Author

DSK9012 commented Jul 27, 2023

I made the remaining changes.

@DSK9012 Thanks for the pull request! It's a great first PR at MUI!

Hey, Thanks for that Zeeshan. It's an honour to contribute to MUI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module! package: joy-ui Specific to @mui/joy package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Autocomplete] Access default getOptionLabel in renderOption
4 participants