koumoul-dev / vuetify-jsonschema-form

Create beautiful and low-effort forms that output valid data. Published on npm as @koumoul/vjsf.
https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/
MIT License
538 stars 154 forks source link

2.0.3 nullable properties are not set #268

Closed gonklcb closed 3 years ago

gonklcb commented 3 years ago

nullable properties are not set when initializing and input event trigger

I write json schema like under examples. type: ['string', 'null']

However, the property is not set in the data I bind to v-model. same issue in docs. I test version 1.24.1 nullable properties is working well.

I think there is a problem with the source with the link below. Properties with nullable properties believe that input events should be emit even if value is not null.

https://github.com/koumoul-dev/vuetify-jsonschema-form/blob/master/lib/VJsfNoDeps.js#L334

I'd appreciate it if you could check what I wrote ASAP:)