Explorar o código

Form: Fix resetFields issue #(15181) (#15640)

luckyCao %!s(int64=6) %!d(string=hai) anos
pai
achega
466aa288a3
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      packages/form/src/form-item.vue

+ 5 - 0
packages/form/src/form-item.vue

@@ -242,6 +242,11 @@
           prop.o[prop.k] = this.initialValue;
         }
 
+        // reset validateDisabled after onFieldChange triggered
+        this.$nextTick(() => {
+          this.validateDisabled = false;
+        });
+
         this.broadcast('ElTimeSelect', 'fieldReset', this.initialValue);
       },
       getRules() {