Skip to content

Releases: vlad-ignatov/react-numeric-input

v2.2.2

13 Jan 04:17
Compare
Choose a tag to compare
  • style={false} produces eslint warning so it is deprecated now. There is new noStyle boolean prop for that.
  • Fixes the case where string value reappears in input when mouse hovers over the up/down button after clicking away.
  • Document the strict prop.
  • A readOnly input is almost like disabled one now. The only difference is that you can focus it and copy the value.
  • Various small code improvements.

v2.2.3

13 Jan 15:42
Compare
Choose a tag to compare
  • Small fix for a bug introduced in 2.2.2.
  • Updated the online demo to include examples of the latest props.

v2.2.1

11 Jan 03:59
9b0558b
Compare
Choose a tag to compare
  • The input will now use "fontSize: inherit" style.
  • Added the componentClass prop (thanks to @Yukioru)
  • Fixed small issues in tests
  • Added live demo preview (thanks to @ipiranhaa)
  • Accept React 16 as peer dependency

v2.2.0

20 Aug 16:44
Compare
Choose a tag to compare
  • If the component gets re-rendered with new value the onChange callback will not be called.
  • If the component is rendered with invalid string value prop the input will render empty instead of having value of 0.
  • Fixed an issue where preventDefault in "onTouchStart" causes double step to happen.
  • Added the strict prop. In strict mode the value is converted to number (and formated) while the user types. In loose mode (the default mode) you can type anything and the value gets reformatted on blur.
  • Added e2e tests.
  • The precision prop can also be a function that can decide what precision to use at runtime.
  • The min, max and step props can also be functions.

v2.1.0

30 Jul 03:37
Compare
Choose a tag to compare
  • Added snap prop to make the value snap to the closest step when using buttons or up/down keys to change it.
  • Pass a reference to the input element to the onChange callbacks
  • Fixed an issue preventing the input from being editable when it's entire value is selected
  • Fixed an issue that might cause the component to loose its value if re-rendered without value prop

v2.0.9

23 Jul 14:38
Compare
Choose a tag to compare
  • Field now accepts "-.", "+.", ".", "-", and "+" at beginning of input value.
  • Merge some pull requests
  • Fixed backspace on float values
  • Use external prop-types package
  • Use react and react-dom v15.6.1

v.2.0.7

14 Jan 10:45
Compare
Choose a tag to compare
  • Fixed the focus/blur issues. Thanks to #25
  • onChange gets called when input content is deleted #27

v.2.0.6

21 Sep 10:11
Compare
Choose a tag to compare

Use peerDependencies to specify the react versions

v2.0.5

21 Sep 08:33
Compare
Choose a tag to compare
  • Compatible with React 15.2 and 15.3
  • Preserve the selection between re-rendering
  • Fix a bug in handling the step prop
  • Loose formatting while the user is typing and strict on blur
  • Various other fixes

v2.0.4

28 May 10:01
Compare
Choose a tag to compare
  • Make it compatible with React 15
  • Inline styles can be disabled by passing style={false}
  • Various small fixes and improvements