-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
TextInput validation not triggering during typing(onChange). #9547
Comments
But when blur and again focus it's starting working. |
As I can not see any answeres, I created seperate function which I call like this
which only triggered when first letter/symbol/number... entered. |
Confirmed, thanks for the report. |
Isn't it because you have both form level and input level validation? react-hook-form does not support both on the same form, as explained in our documentation (https://marmelab.com/react-admin/Validation.html): |
no as you can see I am usin only global validation , you can see in sandbox |
I tried all modes and revalidate values
What you were expecting:
e.g. Validate first name, when inserted dash immediatly show error message.
What happened instead:
only when onBlur, even when I put onChange mode or all, it only triggers when onBlur, but need real time validation to show missing or wrong elements to user.
Steps to reproduce:
Related code:
Other information:
https://codesandbox.io/p/devbox/validationtest-djclwn
Go to Posts and create, need to trigger during typing validation but only trigger when onblur
Environment
The text was updated successfully, but these errors were encountered: