Fix for prop values on not updating (not reflecting on input) on StrictMode. Regression of v5.2.0
fix(number_format_base): prevent warnings in SRR when using useLayoutEffect. by @NicolasMontone
Regression fix from 5.2.0
Regression fix: try to correct the value if the old formatted value is provided but the format prop changes
Bug fixes and valueIsNumericString prop improvement.
Improvements
Optimize rendering, and avoid multiple rerender when number format is mounted.
Try to guess valueIsNumericString based on props and value, so the user no longer has to define this prop, if the format prop (prefix/ suffix for numeric format, format prop for pattern format) doesn't have the number in it.
Fixes
Fixes #736 - Fix for focus on mount getting reset.
Fixed #740 - fixed type for the format, removeFormat, getCaretBoundary.
Fixed #741 - Thousand and decimal formatting broken while typing when value isNumericString is set to false
Fixed #742 - cursor position getting changed when format props are updated during typing.
Fixed #725 - The cursor position not being correct when allowed decimal separator is typed
Fixed a couple of false positive tests and some regressions around those.
Bug fixes
Fixed #694 Prefix/Suffix containing numbers gets appended to value.
Fixed #691 Prefix/Suffix blocking input when set to a number
Fixed #729 Prefix '-' does not allow to remove first number
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps react-number-format from 4.9.4 to 5.3.4.
Release notes
Sourced from react-number-format's releases.
... (truncated)
Commits
5a4030c
Fix caret position not getting corrected when there is selection in the input...2910b57
- Add documentation link on package.json #81069ad995
Release for bug fixesd441c95
- Fix #817, wrong caret position getting set when . is pressed on empty value...0a2018e
refactor: clean up updateValueAndCaretPositionfe3db3c
- Add test case for #81430461f7
Add spec for current target being present on onFocus event.4450eea
fix: setCaretTimeout checkad85c02
fix: pass currentTarget to onFocuse2179f9
Add IBAN input field customization exampleYou can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show