diff --git a/src/components/validator/validator.vue b/src/components/validator/validator.vue index a4286da7e1558721fa6d338867bc0870b8beb6d8..2df6102949caff09c45a3726afd2152fd3bfdb3f 100644 --- a/src/components/validator/validator.vue +++ b/src/components/validator/validator.vue @@ -104,15 +104,18 @@ value(newVal) { this.valid = newVal }, - targetModel() { - if (this.isDisabled) { - return - } - if (!this.dirty) { - this.dirty = true - } + targetModel: { + handler() { + if (this.isDisabled) { + return + } + if (!this.dirty) { + this.dirty = true + } - this.validate() + this.validate() + }, + sync: true }, isDisabled(newVal) { if (!newVal && this.trigger && !this.validated) {