Przeglądaj źródła

[Input Number] Correctly compute inputNumberDisabled (#18439)

ashuser-pendo 5 lat temu
rodzic
commit
091f63ad78
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/input-number/src/input-number.vue

+ 1 - 1
packages/input-number/src/input-number.vue

@@ -168,7 +168,7 @@
         return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
       },
       inputNumberDisabled() {
-        return this.disabled || (this.elForm || {}).disabled;
+        return this.disabled || !!(this.elForm || {}).disabled;
       },
       displayValue() {
         if (this.userInput !== null) {