importCurrencyInputfrom'react-currency-input-field';<CurrencyInputid="input-example"name="input-name"placeholder="Please enter a number"defaultValue={1000}decimalsLimit={2}onValueChange={(value,name,values)=>console.log(value,name,values)}/>; ...
Previously, for zero-decimal currencies (such as JPY), input will be lost on blur if decimalScale is used (no matter what value was passed in). This was down to the fact that decimalSeparator from getLocaleConfig will be undefined (since it doesn't exist in the output of formatToParts)...