-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Annoying live validation with numeric prefixes #958
Labels
Comments
Reproducible JSFiddle: https://jsfiddle.net/epicfaace/t329bLn0/ |
It's worth noting that this issue doesn't come up when |
This is part of a larger constellation of issues about how we handle numbers. See #674. It's also kind of a problem with how live validation works -- it probably doesn't really make sense to validate until we get a |
8 tasks
CodeGains
pushed a commit
to CodeGains/react-jsonschema-form
that referenced
this issue
Mar 5, 2019
…sf-team#1183) Connects to rjsf-team#674 rjsf-team#958 Change-type: patch Signed-off-by: Lucian <lucian.buzzo@gmail.com>
sebastiancichos
pushed a commit
to lendingblock/react-jsonschema-form
that referenced
this issue
Feb 20, 2020
Connects to rjsf-team#674 rjsf-team#958 Change-type: patch Signed-off-by: Lucian <lucian.buzzo@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Description
When live validation is enabled, typing in a negative number will flash up a warning for a moment when typing in negative numbers. I.e. after having typed only the
-
of-2
, the live validation will complain that the input should be an integer, despite the fact that that is a valid integer prefix.The same goes for typing
.
in front of a number. For a moment the warning flashes up then vanishes, which can be very annoying depending on the type of warning issued.Steps to Reproduce
-
.Ideally, I'm providing a sample JSFiddle or a shared playground link demonstrating the issue.
Expected behavior
Ignore
-
and.
when they are the only characters in an integer or number field, defer checking that they are the only character till form submission instead.Actual behavior
Flashing warnings.
Version
You can usually get this information in your
package.json
or in the file URL if you're using the unpkg one.The text was updated successfully, but these errors were encountered: