Closed yasincaliskan closed 3 years ago
@yasincaliskan While I checked with the last example on Storybook I discovered that using parseInt or parseFloat on the "decimal part" is not producing the behavior we want. While trying it out some solutions, I thought the only consistent way of doing this would simply be mapping each digit manually to their localized version. I pushed a commit doing this.
Before:
After using digit mapping:
Now there seems to be another issue. When I test the examples with maxFractionDigits={0}
, I can't seem to remove the value I entered to the input. For example, enter 1000
to the World Population and then try removing it. It doesn't remove 1
.
number-input
class fornumber
typeIssue example:
1,234.02
->1,234.2