Skip to content

Commit 091f63a

Browse files
[Input Number] Correctly compute inputNumberDisabled (ElemeFE#18439)
1 parent 7122ddb commit 091f63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
169169
},
170170
inputNumberDisabled() {
171-
return this.disabled || (this.elForm || {}).disabled;
171+
return this.disabled || !!(this.elForm || {}).disabled;
172172
},
173173
displayValue() {
174174
if (this.userInput !== null) {

0 commit comments

Comments
 (0)