Skip to content

Commit

Permalink
v1.0.5
Browse files Browse the repository at this point in the history
Removed second event.preventDefault()
  • Loading branch information
cferdinandi committed Jun 26, 2017
1 parent 80fc646 commit 111d3c7
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 14 deletions.
3 changes: 1 addition & 2 deletions dist/js/validate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* validate v1.0.4: A lightweight form validation script that augments native HTML5 form validation elements and attributes.
* validate v1.0.5: A lightweight form validation script that augments native HTML5 form validation elements and attributes.
* (c) 2017 Chris Ferdinandi
* MIT License
* http://github.com/cferdinandi/validate
Expand Down Expand Up @@ -399,7 +399,6 @@
if (hasErrors || settings.disableSubmit) {
event.preventDefault();
}
event.preventDefault();

// If there are errrors, focus on first element with error
if (hasErrors) {
Expand Down
4 changes: 2 additions & 2 deletions dist/js/validate.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/validityState-polyfill.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* validate v1.0.4: A lightweight form validation script that augments native HTML5 form validation elements and attributes.
* validate v1.0.5: A lightweight form validation script that augments native HTML5 form validation elements and attributes.
* (c) 2017 Chris Ferdinandi
* MIT License
* http://github.com/cferdinandi/validate
Expand Down
2 changes: 1 addition & 1 deletion dist/js/validityState-polyfill.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions docs/dist/js/validate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* validate v1.0.4: A lightweight form validation script that augments native HTML5 form validation elements and attributes.
* validate v1.0.5: A lightweight form validation script that augments native HTML5 form validation elements and attributes.
* (c) 2017 Chris Ferdinandi
* MIT License
* http://github.com/cferdinandi/validate
Expand Down Expand Up @@ -399,7 +399,6 @@
if (hasErrors || settings.disableSubmit) {
event.preventDefault();
}
event.preventDefault();

// If there are errrors, focus on first element with error
if (hasErrors) {
Expand Down
Loading

0 comments on commit 111d3c7

Please sign in to comment.