From 7ad1fcaf61efbade3cf84b71a3698ede462f86cb Mon Sep 17 00:00:00 2001 From: David Higgins Date: Mon, 10 Dec 2018 10:07:15 -0500 Subject: [PATCH] listen for model-updated from `fields`, and fix `debounceFormatFunction` property to match fieldInput's `debounceFormatFunc` instead. --- src/fields/abstractField.js | 2 +- src/formGenerator.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fields/abstractField.js b/src/fields/abstractField.js index b6019ad3..297704ef 100644 --- a/src/fields/abstractField.js +++ b/src/fields/abstractField.js @@ -31,7 +31,7 @@ export default { return { errors: [], debouncedValidateFunc: null, - debouncedFormatFunction: null + debouncedFormatFunc: null }; }, diff --git a/src/formGenerator.vue b/src/formGenerator.vue index 054e42e7..aa10fffc 100644 --- a/src/formGenerator.vue +++ b/src/formGenerator.vue @@ -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)')