-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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][Select] Fix muiName
property TypeScript error
#41726
[material-ui][Select] Fix muiName
property TypeScript error
#41726
Conversation
Netlify deploy previewhttps://deploy-preview-41726--material-ui.netlify.app/ Bundle size report |
muiName
property TypeScript error
c262f17
to
d4da7e3
Compare
…nclude the muiName static property
d4da7e3
to
a0d7a86
Compare
…ges in PropTypes following the previous Select definition change
@@ -151,23 +151,26 @@ export interface BaseSelectProps<Value = unknown> | |||
variant?: SelectVariants; | |||
} | |||
|
|||
export interface FilledSelectProps extends Omit<FilledInputProps, 'value' | 'onChange'> { | |||
export interface FilledSelectProps | |||
extends Omit<FilledInputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to omit these props in the types because the pnpm proptypes
started to fail after the change in the Select definition below. I believe this adjustment is now correct. Previously, it may not have been picking up the props correctly, possibly due to an incorrect intersection with muiName: string
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EyaOuenniche I made the expected changes. Thanks for the pull request.
Co-authored-by: ZeeshanTamboli <[email protected]>
Summary
This pull request addresses a TypeScript error when assigning muiName to a custom component based on Material-UI's Select. It ensures the muiName property is properly recognized in the type definition, facilitating successful compilation.
Fixes #41707