From fa3d9417de2a8a90098ff38a5e5d21eab2f630b8 Mon Sep 17 00:00:00 2001 From: Rob Gardiner Date: Wed, 22 May 2024 16:26:01 +0100 Subject: [PATCH] Explicitly null fraction boundaries work the same as undefined --- src/app/components/inputnumber/inputnumber.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }; }