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

[material-ui][Autocomplete] Add custom props support via slotProps #43613

Conversation

Michael-Hutchinson
Copy link
Contributor

@Michael-Hutchinson Michael-Hutchinson commented Sep 4, 2024

Closes: #43609

@mui-bot
Copy link

mui-bot commented Sep 4, 2024

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against b0fa7a5

@ZeeshanTamboli ZeeshanTamboli changed the title [Paper] Fixes adding a custom PaperComponent property makes the Autocomplete scroll to top on change [material-ui][Autocomplete] Add ability to add custom props through slotProps Sep 5, 2024
@ZeeshanTamboli ZeeshanTamboli added package: material-ui Specific to @mui/material component: autocomplete This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature typescript labels Sep 5, 2024
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.

Hey @Michael-Hutchinson, thanks for the PR! Could you also add a TypeScript module augmentation test? You can refer to this test: https://github.com/mui/material-ui/blob/master/packages/mui-material/test/typescript/moduleAugmentation/alertCustomSlotProps.spec.tsx. Let me know if you need any help.

@ZeeshanTamboli ZeeshanTamboli added the PR: needs test The pull request can't be merged label Sep 5, 2024
@Michael-Hutchinson Michael-Hutchinson force-pushed the bugfix/autocomplete-scrolling-to-top branch from e4c6abd to 556caeb Compare September 7, 2024 19:49
@ZeeshanTamboli ZeeshanTamboli removed the PR: needs test The pull request can't be merged label Sep 9, 2024
@ZeeshanTamboli ZeeshanTamboli changed the title [material-ui][Autocomplete] Add ability to add custom props through slotProps [material-ui][Autocomplete] Add custom props support via slotProps Sep 9, 2024
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.

@Michael-Hutchinson I wrote a proper test case testing both paper and popper slots. Thanks for the PR.

@ZeeshanTamboli ZeeshanTamboli merged commit 6abf2de into mui:master Sep 9, 2024
19 checks passed
@Michael-Hutchinson Michael-Hutchinson deleted the bugfix/autocomplete-scrolling-to-top branch September 9, 2024 14:48
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! enhancement This is not a bug, nor a new feature package: material-ui Specific to @mui/material typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[material-ui][Autocomplete] Adding custom props to slotProps.paper in AutoComplete throws an error
3 participants