Skip to content

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 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 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 needs tests. 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 needs tests. 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.

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.

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

3 participants