Skip to content

Commit

Permalink
Fixed #5847
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici authored and Çağatay Çivici committed Jun 6, 2018
1 parent ab9c360 commit 1a0cfc0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/components/spinner/spinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ export class Spinner implements OnInit,ControlValueAccessor {
onInputKeyup(event: KeyboardEvent) {
const inputValue = (<HTMLInputElement> event.target).value;
const lastCharBeforeEvent = inputValue.charAt(inputValue.length - 2);
if (event.key !== this.decimalSeparator && event.key !== this.thousandSeparator && event.key !== this.negativeSeparator
&& (event.key !== '0' || lastCharBeforeEvent !== this.decimalSeparator && lastCharBeforeEvent !== '0')) {
if (event.key !== this.decimalSeparator && event.key !== this.thousandSeparator && event.key !== this.negativeSeparator) {
this.value = this.parseValue(inputValue);
this.formatValue();
}
Expand Down

0 comments on commit 1a0cfc0

Please sign in to comment.