Updating minFractionDigits and maxFractionDigits results in error #9466
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Current behavior
When both
minFractionDigits
andmaxFractionDigits
are changed for an InputNumber, it results in an error:Error: maximumFractionDigits value is out of range.
Expected behavior
No error should occur and the InputNumber should be formatted using the new settings.
Minimal reproduction of the problem with instructions
Use a InputNumber with
format
set totrue
and bothminFractionDigits
andmaxFractionDigtis
set to 1.Update both faction digits to 2, for example on a button click.
See the demo: https://stackblitz.com/edit/github-gchfwb?devtoolsheight=33&file=src/app/app.component.ts
Just click on the "Change" button and see the console.
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: