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

Having multiple validationErrorClasses displays the error twice when submitting the form again #10

Open
thomasaull opened this issue May 1, 2019 · 0 comments

Comments

@thomasaull
Copy link

I'm using the following options:

ValidForm(form, {
  validationErrorClass: 'Input-error has-text-danger'
})

while it does work perfectly when the error is shown for the first time, every subsequent display does not remove the first one – or every time I click on submit another error message is added:

grafik

Having only one validationErrorClass works perfectly:

ValidForm(form, {
  validationErrorClass: 'Input-error'
})

Ping me if you need a test repo :)

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

No branches or pull requests

1 participant