Skip to content

Commit

Permalink
Don't remove all errors if contact form is valid
Browse files Browse the repository at this point in the history
Refs #20
  • Loading branch information
Ugoku committed May 6, 2021
1 parent 5559e1a commit 5eee8cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## unreleased
* Add inline error messages

## 1.7.0 (2021-03-18)
* Add `defaultCountry` option to contact forms

Expand Down
1 change: 0 additions & 1 deletion src/booking.js
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,6 @@ class RecrasBooking {
this.removeErrors('.recras-contactform ');
this.maybeShowInlineErrors();
if (this.contactFormValid()) {
this.removeErrors();
this.nextSectionActive('.recras-contactform', '.recras-finalise');
}
});
Expand Down

0 comments on commit 5eee8cf

Please sign in to comment.