Skip to content

Commit

Permalink
Fixed #9337 - 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 7e0fcdf commit 3d5c642
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/components/inputnumber/inputnumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,8 @@ export class InputNumber implements OnInit,ControlValueAccessor {
}

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

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

0 comments on commit 3d5c642

Please sign in to comment.