-
Notifications
You must be signed in to change notification settings - Fork 89
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
fix(all): replace defaultProps with inline function defaults #1440
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -28,7 +28,7 @@ const useStyles = createUseStyles({ | |||
}, | |||
}); | |||
|
|||
const List = ({ value, optionClick, noOptionsTitle, filterValue, filterValueText, selectedValues, MenuProps, MenuItemProps }) => { | |||
const List = ({ value = {}, optionClick, noOptionsTitle, filterValue, filterValueText, selectedValues, MenuProps = {}, MenuItemProps = {} }) => { |
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.
value should be array
cancelLabel: 'Cancel', | ||
resetLabel: 'Reset', | ||
canReset: false, | ||
canSubmit: false, |
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.
is this not used?
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.
It's been moved to the FormControls
argument defaults.
bf48313
to
c0eb916
Compare
🎉 This PR is included in version 3.22.3 🎉 The release is available on |
Fixes #1439
@rvsia this will need proper validation