react-currency-input-field icon indicating copy to clipboard operation
react-currency-input-field copied to clipboard

Start typing from decimal

Open akagamina opened this issue 3 years ago • 0 comments
trafficstars

Hi,

Thanks for the awesome package.

I need to start typing from decimal.

if I type 22, it should be converted to 0.22. if I type 122, it should be converted to 1.22 (with a 2-decimal limit).

is there any feature for this?

This is my input;

<CurrencyInput placeholder={placeholder} id={name} value={value} name={name} onValueChange={onChange} prefix={'£'} step={1} maxLength={max} disabled={disabled} allowDecimals decimalsLimit={2} fixedDecimalLength={2} {...other} />

akagamina avatar Oct 18 '22 11:10 akagamina