diff --git a/src/components/provider.js b/src/components/provider.js index 2438da943..c93c9fead 100644 --- a/src/components/provider.js +++ b/src/components/provider.js @@ -170,7 +170,7 @@ export const ValidationProvider = { /* istanbul ignore next */ if (!isCallable(slot)) { if (process.env.NODE_ENV !== 'production') { - warn('ValidationProvider expects a scoped slot. Did you forget to add "v-slot" to your slot?'); + warn('ValidationProvider expects a scoped slot. Did you forget to add "v-slot"?'); } return h(this.tag, this.$slots.default); @@ -329,7 +329,7 @@ export function onRenderUpdate (model) { const validateNow = shouldValidate(this, model); this._needsValidation = false; - this.value = model.value; + this.syncValue(model.value); this._ignoreImmediate = true; if (!validateNow) { @@ -342,7 +342,6 @@ export function onRenderUpdate (model) { // Creates the common handlers for a validatable context. export function createCommonHandlers (ctx) { const onInput = (e) => { - ctx.syncValue(e); // track and keep the value updated. ctx.setFlags({ dirty: true, pristine: false }); }; @@ -379,6 +378,10 @@ export function createCommonHandlers (ctx) { ctx.$veeDebounce = ctx.debounce; } + onValidate._vee_isUnique = true; + onBlur._vee_isUnique = true; + onInput._vee_isUnique = true; + return { onInput, onBlur, onValidate }; }