Skip to content

Commit

Permalink
Fixed #1614 - InputNumber with spinner mode throws a JS exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Oct 7, 2020
1 parent a6bf122 commit 4b215b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/inputnumber/InputNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,8 @@ export class InputNumber extends Component {
}

updateInput(value, insertedValueStr, operation) {
insertedValueStr = insertedValueStr || '';

let inputValue = this.inputEl.value;
let newValue = this.formatValue(value);
let currentLength = inputValue.length;
Expand Down

0 comments on commit 4b215b1

Please sign in to comment.