yarn react-number-format 2.0.0
Version 2

latest releases: 5.3.4, 5.3.3, 5.3.2...
6 years ago
  • Added isAllowed prop to validate custom input and reject input based on it. Fixes #23, #60
  • onChange api been changed. Now it receives values object as second parameter. Fixes #71, #45
  • decimalSeparator no longer support boolean values. Fixes #39
  • thousandSeparator accepts only true as boolean (which defaults to ,) or thousandSeparator string
  • Validate thousandSeparator and decimalSeparator a and throw error if incorrect props provided.
  • decimalPrecision only accepts number . Fixes #66,
  • Value prop is rounded off to provided decimal precision. decimalPrecision can be 0 if only integer value is allowed . Fixes #61, #44, #33
  • Value can be passed as string or number but if it is passed as string you should maintain the same decimal separator on the string what you provided as decimalSeparator prop. Fixes #43
  • Added back the type prop for the input type attribute (Only text or tel is supported). #35, #13 (PRs from: @kentandersen, @lgraubner)
  • Fixed mobile issues #64, #52, #27 (PRs from: @stutrek)
  • Fixed IE Issues #49, #8
  • Fixed prop change effects after the component been initialized. Fixes #62, #28
  • Enforce cursor to be between prefix and suffix in focus, click or arrow navigation. Fixes #29
  • Stopped using parseFloat and toFixed method and created custom methods for those as they were resulting in the exponential format for number greater than 2^23.
  • Migrate deprecated PropTypes (PR from #51)
  • Fixed #69, #65, #58, #40, #14, #55, #68

Don't miss a new react-number-format release

NewReleases is sending notifications on new releases.