1.3.2
π Improvements
- π
When mapping
initialTouched
, formup will now consider the mergedinitialValues
object (that is generated based on the schema +options.initialValues
). Each field will be validated, being touched only if:- Is truthy
- Is
false
(falsy, but represents checkboxes & radio buttons, they're already selected in this case) - Is
0
(falsy, but represents number inputs already pre-filled)
This means that any inputs auto-initialized by formup will be touched
by default, if the value matches the criteria above.
Some examples are:
0 // touched
false // touched
true // touched
"foo" // touched
"" // not touched
null // not touched
undefined // not touched