Fixed #532 - InputNumber with spinner mode throws a JS exception

pull/548/head
mertsincan 2020-10-09 11:06:51 +03:00
parent f010b971de
commit 5ce105335c
1 changed files with 2 additions and 0 deletions

View File

@ -659,6 +659,8 @@ export default {
return value; return value;
}, },
updateInput(value, insertedValueStr, operation) { updateInput(value, insertedValueStr, operation) {
insertedValueStr = insertedValueStr || '';
let inputValue = this.$refs.input.$el.value; let inputValue = this.$refs.input.$el.value;
let newValue = this.formatValue(value); let newValue = this.formatValue(value);
let currentLength = inputValue.length; let currentLength = inputValue.length;