vuetify-jsonschema-form icon indicating copy to clipboard operation
vuetify-jsonschema-form copied to clipboard

Array of strings not nullable

Open ibot3 opened this issue 3 years ago • 0 comments

When using an array of strings, vjsf always expects the model to be a list. Supplying null as value, throws errors:

Error in beforeMount hook: 'TypeError: can't access property 'map', e is null'

https://codepen.io/ibot3/pen/VwPXdJr?editors=1011

Also adding null ass additional type does not help, the field just disappears in this case. It would be great if the field would be "clearable" or at least does not throw an error if null is used in the model. It could be just assumed as empty list instead.

ibot3 avatar Apr 13 '21 13:04 ibot3