From 5ce105335c9e68da8a889cacc651e53188e4c858 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 9 Oct 2020 11:06:51 +0300 Subject: [PATCH] Fixed #532 - InputNumber with spinner mode throws a JS exception --- src/components/inputnumber/InputNumber.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/inputnumber/InputNumber.vue b/src/components/inputnumber/InputNumber.vue index 6055af875..85c8d88d8 100755 --- a/src/components/inputnumber/InputNumber.vue +++ b/src/components/inputnumber/InputNumber.vue @@ -659,6 +659,8 @@ export default { return value; }, updateInput(value, insertedValueStr, operation) { + insertedValueStr = insertedValueStr || ''; + let inputValue = this.$refs.input.$el.value; let newValue = this.formatValue(value); let currentLength = inputValue.length;