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

Custom/server validation errors #41

Merged

Conversation

EvanMorrison
Copy link

This PR adds the ability to set custom errors using validatAll(). While setError() and setErrors() allow for setting custom errors, subsequently running validateAll() will clear them and set only the internally generated formLinker errors. Consequently, scrollToError(), which relies on validateAll() to generate validation errors, can't scroll to a custom error.

This PR adds the ability for validateAll() to optionally take an errors object as its argument and it will merge those errors with the formLinker generated errors. scrollToError() can also take an errors object argument which it will pass to validateAll().

This PR has no breaking changes.

@EvanMorrison EvanMorrison merged commit ee242fb into AlchemyAlcove:master May 13, 2020
@EvanMorrison EvanMorrison deleted the serverValidationErrors branch May 13, 2020 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant