Skip to content

Commit

Permalink
Merge pull request #14632 from thatsmeta/issue-14630
Browse files Browse the repository at this point in the history
fix(#14630): emit blur after input value validation
  • Loading branch information
cetincakiroglu committed Feb 1, 2024
2 parents ca25af1 + d273bfe commit f689f1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/components/inputnumber/inputnumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1364,12 +1364,10 @@ export class InputNumber implements OnInit, AfterContentInit, OnChanges, Control
this.focused = false;

let newValue = this.validateValue(this.parseValue(this.input.nativeElement.value));

this.onBlur.emit(event);

this.input.nativeElement.value = this.formatValue(newValue);
this.input.nativeElement.setAttribute('aria-valuenow', newValue);
this.updateModel(event, newValue);
this.onBlur.emit(event);
}

formattedValue() {
Expand Down

0 comments on commit f689f1e

Please sign in to comment.