Skip to content

Releases: s-yadav/react-number-format

Bug Fixes

04 Jan 17:16
Compare
Choose a tag to compare
  • Fix IOS keypad issue (which doesn't allow - sign to be added) #409
  • Use the default value if the value as null is provided. #462, #347
  • Fixed #481, add inputmode=numeric only on client-side

Bug Fixes and Enhancements

20 Feb 15:56
Compare
Choose a tag to compare
  • 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

01 Oct 06:48
Compare
Choose a tag to compare
  • Added allowedDecimalSeparators props which user can type to add decimals.
<NumberFormat allowedDecimalSeparators={[',', '.']} thousandSeparator="." decimalSeparator="," />

v4.2.0

07 Aug 15:12
Compare
Choose a tag to compare

#331 (By @techno1ology, @nmalzieu)

  • Added prop to keep leading zeros.
  • Fixed thousand separator bug on leading zeros
  • Typo fixes in the readme

v4.1.1

06 Aug 17:35
Compare
Choose a tag to compare
  • Type support for customInput props. #330 (By @Yankovsky)
  • Allow getting customInput ref using getInputRef. #329 (By @cawinkelmann)

Bug fixes and code refactor

11 Nov 17:42
Compare
Choose a tag to compare
  • 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 🎉🎉

30 Oct 13:07
Compare
Choose a tag to compare

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

30 Sep 19:44
Compare
Choose a tag to compare

Fix whole number replacement when using fixedDecimalScale and prefix/suffix (@wolfib )

Bundling improvement and bug fixes

18 Sep 05:41
Compare
Choose a tag to compare

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

Older Fixes

  • Fixed #217. Persist event on keydown
  • Allow using native input props #214 ( @masiulis )
  • Fixed #208. Array.prototype.includes issue for IE 11.
  • Added typescript support

v3.4.2: - Refactor code for #193

06 Jun 18:24
Compare
Choose a tag to compare
  • 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