Skip to content

Commit

Permalink
Merge pull request #16 from navedqb/fix-14928
Browse files Browse the repository at this point in the history
fix: fix null issue on Input Blur
  • Loading branch information
navedqb authored Mar 4, 2024
2 parents f48e976 + 20cee7f commit e63e7a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/inputnumber/inputnumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1379,9 +1379,9 @@ export class InputNumber implements OnInit, AfterContentInit, OnChanges, Control
onInputBlur(event: Event) {
this.focused = false;

let newValue = this.validateValue(this.parseValue(this.input.nativeElement.value)).toString();
let newValue = this.validateValue(this.parseValue(this.input.nativeElement.value));
this.input.nativeElement.value = this.formatValue(newValue);
this.input.nativeElement.setAttribute('aria-valuenow', newValue);
newValue && this.input.nativeElement.setAttribute('aria-valuenow', newValue.toString());
this.updateModel(event, newValue);
this.onBlur.emit(event);
}
Expand Down

0 comments on commit e63e7a6

Please sign in to comment.