Skip to content

Commit

Permalink
Merge pull request #15775 from qburst/fix--15772
Browse files Browse the repository at this point in the history
fix: integer display when min/max fraction digits are set to 0
  • Loading branch information
cetincakiroglu authored Jun 13, 2024
2 parents 9807d5b + 3ca84cf commit 0389df3
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 @@ -563,8 +563,8 @@ export class InputNumber implements OnInit, AfterContentInit, OnChanges, Control
currency: this.currency,
currencyDisplay: this.currencyDisplay,
useGrouping: this.useGrouping,
minimumFractionDigits: this.minFractionDigits ? this.minFractionDigits : undefined,
maximumFractionDigits: this.maxFractionDigits ? this.maxFractionDigits : undefined
minimumFractionDigits: this.minFractionDigits ?? undefined,
maximumFractionDigits: this.maxFractionDigits ?? undefined
};
}

Expand Down

0 comments on commit 0389df3

Please sign in to comment.