-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update to MUI5 #291
Update to MUI5 #291
Conversation
## Autocomplete | ||
`TextField` props may be specified inside the `textField` prop. If no `renderInput` function is provided, the `textField` props are forwarded to the `TextField` input. | ||
|
||
When using picker components initialize the starting value to `new Date()` and not the empty 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.
We should add a dev mode warning if we encounter a date with a string value
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 stated somewhere in the mui5 docs?
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.
I'm not the author of this content, I've simply moved over the old material-ui-pickers
documentation
"react-dom": "^16.13.1" | ||
"@docusaurus/core": "^2.0.0-beta.6", | ||
"@docusaurus/preset-classic": "^2.0.0-beta.6", | ||
"classnames": "^2.3.1", |
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.
nit: mui seems to have switched to clsx and I should switch this project over too at some point
Any chance to get this out as a beta? |
@suprMax To unblock myself I've temporarily published an 💡 I recommend using an alias to avoid changing the imports later on: |
- Include FormControl, FormHelperText, InputLabel in `Select` component - Fix stories and add new ones - Update API doc - Remove FAQ: Validation Errors Missing From Select
Pleasure @cliedeman ! FYI, there is still some polishing needed around the implementation (on top of better documentation, mostly for
// ...
onChange:
onChange ??
function (date) {
// Do not switch this order, otherwise you might cause a race condition
// See https://github.com/formium/formik/issues/2083#issuecomment-884831583
if (getIn(touched, field.name)) {
setFieldTouched(field.name, true, false);
}
setFieldValue(field.name, date, validateOnChange ?? true);
},
onClose:
onClose ??
(() => {
setFieldTouched(field.name, true, validateOnBlur ?? true);
}),
// ... For lack of time, I don't think I'll be able to tackle these items over the next month. That's about it. Cheers y'all, enjoy MUI!! |
@fxlemire thanks for the insights, I will create tickets for the issues so we can tackle them |
This PR picks up where @smo043 left with his draft PR. I could unfortunately not target his PR with this one since it's in a draft state.
I've tried to scope my commits as best as I could to make the review easy. I had to take a design decision for the pickers as they changed quite a lot since V4. I'm unsure about the direction I took, so feel free to modify as you see fit.
I did not write the documentation on migration yet since the design direction could potentially change.
As part of the "rebranding" commit (d822918), I've only changed what referenced to the real MUI framework. I've kept
formik-material-ui
and all thematerial-ui
references as they are, as I don't know if we want to rebrand the packages toformik-mui
along with the documentation URLs.With some hope, this will help with speeding up the release of MUI V5 support. Thanks for maintaining the repo @cliedeman!