Skip to content

Commit

Permalink
Merge pull request #28 from navedqb/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
navedqb authored Jun 3, 2024
2 parents 0da7497 + 8ec0146 commit 3ca84cf
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 3ca84cf

Please sign in to comment.