broven il y a 8 ans
Parent
commit
933d9a8241
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/form/src/form-item.vue

+ 1 - 1
packages/form/src/form-item.vue

@@ -164,7 +164,7 @@
         if (Array.isArray(value) && value.length > 0) {
           this.validateDisabled = true;
           prop.o[prop.k] = [];
-        } else if (value) {
+        } else if (value !== '') {
           this.validateDisabled = true;
           prop.o[prop.k] = this.initialValue;
         }