Replies: 3 comments 7 replies
-
I totally agree with this ! I actually just posted the same comment on an issue that's just been closed. |
Beta Was this translation helpful? Give feedback.
-
Actually I'm not sure anymore. I'm thinking maybe the default form state should be an empty array. Because when we add |
Beta Was this translation helpful? Give feedback.
-
@heath-freenome Could you give us your opinion on this please ? |
Beta Was this translation helpful? Give feedback.
-
When computeDefaults is run with a schema of
"type": "array"
, with"minItems": 1
, and an item of"type":"string"
and no default specified in the schema, it is returning a default of[undefined]
. If the default is then used in validation because I left the input empty, this fails the validation, because it is looking for an array containing a string. I feel like the default form state should be returningundefined
not in an array because I don't want this failing my validation when I don't enter a value, unless this property is in the required array.Beta Was this translation helpful? Give feedback.
All reactions