Skip to content

Commit

Permalink
listen for model-updated from fields, and fix `debounceFormatFuncti…
Browse files Browse the repository at this point in the history
…on` property to match fieldInput's `debounceFormatFunc` instead.
  • Loading branch information
zoul0813 committed Dec 10, 2018
1 parent a484031 commit 7ad1fca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fields/abstractField.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default {
return {
errors: [],
debouncedValidateFunc: null,
debouncedFormatFunction: null
debouncedFormatFunc: null
};
},

Expand Down
2 changes: 1 addition & 1 deletion src/formGenerator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
div.vue-form-generator(v-if='schema != null')
fieldset(v-if="schema.fields", :is='tag')
template(v-for='field in fields')
form-group(v-if='fieldVisible(field)', :vfg="vfg", :field="field", :errors="errors", :model="model", :options="options", @validated="onFieldValidated")
form-group(v-if='fieldVisible(field)', :vfg="vfg", :field="field", :errors="errors", :model="model", :options="options", @validated="onFieldValidated", @model-updated="onModelUpdated")

template(v-for='group in groups')
fieldset(:is='tag', :class='getFieldRowClasses(group)')
Expand Down

0 comments on commit 7ad1fca

Please sign in to comment.