I'm using final-form
and final-form-material-ui
I want to set min and max values for number inputs. Already tried
InputProps={{ inputProps: { min: 0, max: 10 } }}
but it doesn't work.
Also I want to add seconds for preparation_time
so the format would be 00:00:00.
codesandbox https://codesandbox.io/s/fast-brook-g3488?file=/src/App.js
using the documentation: https://final-form.org/docs/react-final-form/examples/field-level-validation
sandbox demo: https://codesandbox.io/s/wizardly-paper-2dtwf?file=/src/App.js:3139-3391
write your validation in this way:
then use the validation in this way: