react-currency-input-field
react-currency-input-field copied to clipboard
Abreviations Break Input for Sweedish Locale
trafficstars
NaN or sets of "000" appear in input field when using Sweeish locale with SEK currency and abbreviations enabled. Component is seeing the "k" in the currency label "kr", thinks it means "thousand", and is trying to replace it with "000".
To Reproduce
- Have a
<CurrencyInput />component withintlConfig={{ locale: "sv-SE", currency: "SEK" }}anddisableAbbreviations={false} - Type "75"
- The input field value becomes "NaN kr"
Expected behavior The input field value should be "75 kr"