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
Click submit before entering any data. It will show "required" for both.
Click CheckBox. It errors here.
If you look at the console logs, it seems to be passing the true from the CheckBox into the validation for the Username FormField. Username FormField expects a string but a boolean is being passed in.
This only happens when the other FormField is left blank.
Your Environment
Grommet version: 2.11.2
The text was updated successfully, but these errors were encountered:
The behavior is different in 2.11.3 but there is still an issue. I created a new issue here #3896. Closing this one since it is outdated since 2.11.3 release.
Expected Behavior
FormField validation should be based on its own value
Actual Behavior
FormField is validating value from a different FormField
URL, screen shot, or Codepen exhibiting the issue
Codesandbox demo https://oescm.csb.app/form
Codesandbox code https://codesandbox.io/s/formfield-validation-issue-oescm (see
Form
component)Steps to Reproduce
In demo link above,
If you look at the console logs, it seems to be passing the
true
from the CheckBox into the validation for the Username FormField. Username FormField expects a string but a boolean is being passed in.This only happens when the other FormField is left blank.
Your Environment
The text was updated successfully, but these errors were encountered: