Releases: vlad-ignatov/react-numeric-input
Releases · vlad-ignatov/react-numeric-input
v2.2.2
- 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
- Small fix for a bug introduced in 2.2.2.
- Updated the online demo to include examples of the latest props.
v2.2.1
- 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
- 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
- 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
- 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
v.2.0.6
Use peerDependencies to specify the react versions
v2.0.5
- 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
- Make it compatible with React 15
- Inline styles can be disabled by passing
style={false}
- Various small fixes and improvements