Skip to content

Releases: s-yadav/react-number-format

Bug Fixes

15 Mar 19:03
9e7509e
Compare
Choose a tag to compare
  • Fix decimal scale issues #501
  • Improve renderText API to allow passing custom props #484

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