v2.7.0
v2.7.0
eventProp
and improvements for working with checkboxes
New prop eventProp
vue-form-json-schema
automatically handles Events but until this release it hasn't been possible to configure what value should be extracted from the event. Previously event.target.value
was always used, but now it can be configured to use eventProp
, which allows you to extract any property from event.target
, which means you can for example retrieve event.target.checked
.
See documentation for eventProp
Improvements to automatic handling of attrs/domProps for native elements
Automatic handling of checked
attribute/dom property for input type="checkbox"
elements was broken but has now been fixed. With this fix it is now possible to use an object in componentProps
to determine whether an element should have attrs/domProps set.