Skip to content

Commit

Permalink
[Input Number] Correctly compute inputNumberDisabled (ElemeFE#18439)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuser-pendo authored and BANKA2017 committed Mar 16, 2021
1 parent d90c96a commit b67ccfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/input-number/src/input-number.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b67ccfd

Please sign in to comment.