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

Precision={0} with suffix=",00" make the value passed on onChangeEvent wrong

Open Mathitos opened this issue 5 years ago • 0 comments

You can reproduce using

<CurrencyInput
            prefix="$ "
            precision={0}
            suffix=",00"
            decimalSeparator=","
            thousandSeparator="."
            allowEmpty
            placeholder="buggy"
            value={null}
            onChangeEvent={(v1,v2,v3) => console.log(v1,v2,v3)}
          />

Mathitos avatar Apr 02 '19 21:04 Mathitos