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
Since I'm not providing a zip field, it's never touched and meta.touched is always false, making it impossible to render the error message. It seems likely that I could be doing something wrong, but I couldn't find a solution to this in the docs or by searching through closed issues.
The text was updated successfully, but these errors were encountered:
ddluc
changed the title
isTouched
meta isTouched should omit zip field when not provided
Jul 27, 2020
ddluc
changed the title
meta isTouched should omit zip field when not provided
meta.isTouched should omit zip field when not provided
Jul 27, 2020
Expected Behavior:
If no zip input is provided, it should be omitted from
meta.touched
andmeta.isTouched
.Actual Behavior:
I setup
react-payment-inputs
as follows:For the life of me, I couldn't understand why the error was not rendering. However, upon further inspection I found the following:
Since I'm not providing a zip field, it's never touched and
meta.touched
is alwaysfalse
, making it impossible to render the error message. It seems likely that I could be doing something wrong, but I couldn't find a solution to this in the docs or by searching through closed issues.The text was updated successfully, but these errors were encountered: