You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've faced this in my code, but in the playground I saw that exist the same issue. When type is number or integer and instead of a number it contains a string, the value is removed from formData and when clicks on save there is no error.
Expected Behavior
If number/integer type field contains something that is not a number/integer, an error should be shown and data should not be removed.
Steps To Reproduce
No response
Environment
- OS:
- Node:
- npm:
Anything else?
No response
The text was updated successfully, but these errors were encountered:
I've continued investigating and for example in playground, if I remove from the ui schema to use the widget upDown for an integer it is velidated correctly, so seems that the issue comes from the upDown widget, not only for material ui, for all the the themes. Other thing is why it is needed to specify the updown widget for integer instead of having it by default like for numbers?
ElfeBc
changed the title
number/integer validation not working
number/integer upDown widget not working properly
Jul 15, 2022
Prerequisites
What theme are you using?
material-ui
Version
4.2.0
Current Behavior
I've faced this in my code, but in the playground I saw that exist the same issue. When type is number or integer and instead of a number it contains a string, the value is removed from formData and when clicks on save there is no error.
Expected Behavior
If number/integer type field contains something that is not a number/integer, an error should be shown and data should not be removed.
Steps To Reproduce
No response
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: