You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using defaultValue for my case is not preferred because it's easier to just click in an empty input
than to position the cursor at the beginning of the default value.
Edit: Also note that if the version is pinned to 5.3.0 and valueIsNumericString is present, then the same issue presents itself.
The text was updated successfully, but these errors were encountered:
Stan-Stani
changed the title
5.3.1 Regression: Typing "." leads to "^0.00" where caret is at location of ^
5.3.1 Regression: Typing "." leads to "^0.00" where "^" is location of caret
Dec 15, 2023
connor-baer
added a commit
to sumup-oss/circuit-ui
that referenced
this issue
Jan 8, 2024
Describe the issue and the actual behavior
Typing "." then "5" in an empty input leads to "50.00" with a controlled input in version 5.3.1 but not 5.3.0
Describe the expected behavior
Above input should lead to "0.50" or ".50"
Using defaultValue for my case is not preferred because it's easier to just click in an empty input
than to position the cursor at the beginning of the default value.
Provide a CodeSandbox link illustrating the issue
https://codesandbox.io/p/sandbox/value-demo-forked-8jrtyg?file=%2Fsrc%2FApp.js%3A18%2C29
Provide steps to reproduce this issue
See above description
Please check the browsers where the issue is seen
Edit: Also note that if the version is pinned to 5.3.0 and
valueIsNumericString
is present, then the same issue presents itself.The text was updated successfully, but these errors were encountered: