浏览代码

[Input Number] Correctly compute inputNumberDisabled (#18439)

ashuser-pendo 5 年之前
父节点
当前提交
091f63ad78
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {