Replies: 1 comment
-
|
Hi there, thanks for bringing this up. I converted this to a discussion since it isn't really an issue. If we find things that could be an issue out of the discussion, we can file them as such. If you can set up a reproducible example of how the error handling isn't working for you, I'd appreciate it. It would be easier for me to understand what you're bringing up. It sounds like the fields approach is new, we don't support that yet. Happy to accept contributions on that for sure. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
has anyone got the DateTimePicker working with the new v6 mui release ?
https://next.mui.com/x/whats-new/
Specifically, use of the onError function can be used to render field validation errors, however, these errors are not populated back to the MUI-RFF form validation, and in fact the form can still be submitted.
For example, an error function could be used like follows: (based off response HERE )
which can then be rendered by a
FormHelperTextobject.Also, incidentally, errors which are created by the form validation don't get rendered by the
DateTimePIcker,in the same way asDateTimePickersfor previous version, or standardTextFields etc....I'd like to get this working, the user experience of entering data into the new V6 'fields' approach (HERE) to entering data for pickers, is far superior IMO.
Beta Was this translation helpful? Give feedback.
All reactions