From 0c2dd68531b166ad9f4c6155ea08ff58fd47618d Mon Sep 17 00:00:00 2001 From: ashuser-pendo Date: Tue, 17 Dec 2019 13:32:08 -0500 Subject: [PATCH] Correctly compute inputNumberDisabled when false `input-number.vue` incorrectly calculates `inputNumberDisabled` when the prop `disabled` is set to false as well as `elForm` not existing. `inputNumberDisabled` returns `"undefined"` instead of `false` which is treated as a truthy value on `aria-disabled`. --- packages/input-number/src/input-number.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/input-number/src/input-number.vue b/packages/input-number/src/input-number.vue index 1d2294ca7a5..71aebd7a43c 100644 --- a/packages/input-number/src/input-number.vue +++ b/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) {