Releases: s-yadav/react-number-format
Releases · s-yadav/react-number-format
Bug Fixes
Bug Fixes and Enhancements
- Added inputMode = numeric by default on input so in mobile browser proper keyboard should open. #189, #312
- Fix type declaration #374. Added allowLeadingZeros on types. #385
- Fixed #386. Clear the input on blur if ony
-
is added. - Added prop-type defination for RefObject #384
- Fixed issue with dot separator when decimalScale is set to zero #376 (By @sergei97k )
Added allowedDecimalSeparators props #345
- Added allowedDecimalSeparators props which user can type to add decimals.
<NumberFormat allowedDecimalSeparators={[',', '.']} thousandSeparator="." decimalSeparator="," />
v4.2.0
v4.1.1
Bug fixes and code refactor
- Maintain caret position if suffix/prefix is updated while typing #249.
- Refactor code to have one place to update state and caret position.
- Add spec for maintaining caret pos when . is used instead of decimal separator
V4 Release 🎉🎉
Breaking Changes
- onValueChange no longer receives event object as second parameter, so if you accessing it, it will break.
Feature Addition
- Support defaultValue prop.
- Trigger onValueChange if the value is formatted due to prop change. #227
- Allow password as type prop. #206
- Support indian (lakh) and chinese (wan) style thousand grouping. #184
- Always allow . to be typed as decimal separator, even when decimal separator is defined differently. #133, #162, #168, #223, #115
Bug fixes
- Fixed #242, Issue with formatting number after blur
v3.6.1
Bundling improvement and bug fixes
Build tool improvement
- Upgraded to babel 7
- Use rollup to create much slimmer build
- Upgraded to web pack 4 for dev and test environment
- Added npmignore to keep only dist and lib files
- Removed unused dependency
- Removed babel-runtime
Bug fixes
- #219 Don't reset caret when tabbing into a field. Fix for #149 and #211 ( @JustWalters )
- #221 Correct getInputRef type definition. Fix for #220 ( @IgnorantCoder )
Older Fixes
v3.4.2: - Refactor code for #193
- Fixed #187. Allow removing minus sign with backspace key when prefix is present
- Fixed #185. Handle invalid value on value prop
- Fixed #175. Fixed floatValue being NaN.
Will not call onValueChange if float value does not change. This will prevent calling onValueChange when intermediate character is input like decimal separator.State change will be handled gracefully if float value doesn’t change.- Reset caretPosition on unit test before each test run