diff --git a/src/app/components/inputnumber/inputnumber.ts b/src/app/components/inputnumber/inputnumber.ts index c5e68828dac..cd30b7988d3 100644 --- a/src/app/components/inputnumber/inputnumber.ts +++ b/src/app/components/inputnumber/inputnumber.ts @@ -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 }; }