File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ const props = {
2323 vfjsFieldErrors : {
2424 type : Array ,
2525 } ,
26+ vfjsFieldEventProp : {
27+ type : String ,
28+ } ,
2629 vfjsFieldId : {
2730 type : String ,
2831 required : true ,
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ const data = () => ({
8787 validateOnLoad : true ,
8888 validateOnChange : true ,
8989 valueProp : 'value' ,
90+ eventProp : 'target.value' ,
9091 } ,
9192 vfjsSchema : { } ,
9293 vfjsState : { } ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const vfjsHelpers = {
1313 model : vfjsFieldModelKey = '' ,
1414 required : vfjsFieldRequired = false ,
1515 valueProp : vfjsFieldValueProp = this . vfjsOptions . valueProp ,
16+ eventProp : vfjsFieldEventProp = this . vfjsOptions . eventProp ,
1617 } = vfjsFieldUiSchema ;
1718
1819 const vfjsFieldSchema = this . getVfjsFieldSchema ( vfjsFieldModelKey ) || { } ;
@@ -57,6 +58,7 @@ const vfjsHelpers = {
5758 vfjsFieldState,
5859 vfjsFieldUiSchema,
5960 vfjsFieldValueProp,
61+ vfjsFieldEventProp,
6062 vfjsModel,
6163 vfjsState,
6264 } ;
You can’t perform that action at this time.
0 commit comments