react-currency-input-field
react-currency-input-field copied to clipboard
React component for an input field
**Describe the bug** If the ref you pass to a currency amount input isn't a mutable ref object but instead is a function, then the logic to prevent cursor jumping...
**Describe the bug** Cannot clear form by set null to its value **To Reproduce** set value props with null (described in codesandbox) **Expected behavior** since expected output value type from...
`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...
Fixes a bug in `getSuffix()` for `intlConfig={{ locale: "sv-SE", currency: "SEK" }}` caused by `groupSeparator` being `\u00a0` while `\u00a0` is also used to separate the numbers and the currency label.
* Replace the decimal separator from value only when the former is not an empty string. Otherwise, `'1'.replace('', '.')` returns `.1`. * Allow tests to be run from machines which...
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...
**Describe the bug** When using the configuration below and typing more than 2 numbers the textbox changes to "NaN kr": ` ` **To Reproduce** just insert the component with the...
**To Reproduce** Steps to reproduce the behavior: 1. Go to CurrencyInput 2. Add customInput = TextField (@material-ui) 3. Render component 4. Type 1 in currency field and the typing cursor/caret...
**Describe the bug** When using this input with either **Formik** or **ReactHookForm** and resetting the form state, it still keeps the updated value. **To Reproduce** Steps to reproduce the behavior:...
**Describe the bug** `formatValue` formats some values incorrectly if an `intlConfig` is provided with a `locale` but not a `currency`. **To Reproduce** ```ts $ formatValue({ decimalSeparator: '.', groupSeparator: ',', disableGroupSeparators:...