Skip to content

Commit

Permalink
Merge pull request #15660 from robGardiner01/fix-inputnumber-null-fra…
Browse files Browse the repository at this point in the history
…ctions

FIX - InputNumber Component: Default value for minFractionDigits is not correct when value explicitly set to null
  • Loading branch information
cetincakiroglu committed May 30, 2024
2 parents 678b0d1 + fa3d941 commit 0cb6fc2
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 @@ -558,8 +558,8 @@ export class InputNumber implements OnInit, AfterContentInit, OnChanges, Control
currency: this.currency,
currencyDisplay: this.currencyDisplay,
useGrouping: this.useGrouping,
minimumFractionDigits: this.minFractionDigits,
maximumFractionDigits: this.maxFractionDigits
minimumFractionDigits: this.minFractionDigits ? this.minFractionDigits : undefined,
maximumFractionDigits: this.maxFractionDigits ? this.maxFractionDigits : undefined
};
}

Expand Down

0 comments on commit 0cb6fc2

Please sign in to comment.