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
This is confusing, because valid values, such as 0, are resolved as invalid. I think 0 is a perfectly reasonable value for a "required" numerical input or select box. The same applies to boolean values - the validation should force the user to "make a choice", not to "pick true"
The text was updated successfully, but these errors were encountered:
vwerne
added a commit
to vwerne/validarium
that referenced
this issue
Mar 6, 2020
The documentation for
isRequired
statesThe current implementation however does not only check if the value is present, but also checks if the value is truthy
validarium/packages/validations/src/isRequired.js
Line 19 in 8be494a
This is confusing, because valid values, such as
0
, are resolved as invalid. I think0
is a perfectly reasonable value for a "required" numerical input or select box. The same applies to boolean values - the validation should force the user to "make a choice", not to "picktrue
"The text was updated successfully, but these errors were encountered: