Skip to content
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

The validation errors cannot be retrieved for a field named "value" #17

Closed
fraliv13 opened this issue Nov 1, 2019 · 0 comments · Fixed by #18
Closed

The validation errors cannot be retrieved for a field named "value" #17

fraliv13 opened this issue Nov 1, 2019 · 0 comments · Fixed by #18
Labels
bug Something isn't working fix

Comments

@fraliv13
Copy link
Contributor

fraliv13 commented Nov 1, 2019

When using the "useValidation" hook for validating model with a field named "value", the validation proxy returns incorrect data for the "value" property. Because of this, the "getErrors" function returns no error message.

It seems that by calling "validation.value", the proxy returns the Maybe.Just value instead of a Validation (Success | Failure).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant