Skip to content

Commit

Permalink
fix(kit): InputNumber should handle initial ngModel phantom `null…
Browse files Browse the repository at this point in the history
…` value (#10168)
  • Loading branch information
nsbarsukov authored Jan 14, 2025
1 parent 768f1ff commit f259826
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class TuiInputNumber extends TuiControl<number | null> {

public override writeValue(value: number | null): void {
super.writeValue(value);
this.textfieldValue.set(this.formatNumber(value));
this.textfieldValue.set(this.formatNumber(this.value()));
}

protected onBlur(): void {
Expand Down

0 comments on commit f259826

Please sign in to comment.