Skip to content

Commit fac6ba0

Browse files
author
Shashank Agrawal
authored
Merge pull request #16 from chrisjensen/master
Prevent module from disabling non-angular forms
2 parents 7ea2d5c + 6af95dd commit fac6ba0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/directives/form.directive.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ angular.module('bootstrap.angular.validation').directive('form', [
3939
};
4040

4141
formElement.on('submit', function(e) {
42-
e.preventDefault();
43-
4442
// If any of the form element has not passed the validation
4543
if (formController.$invalid) {
4644
// Then focus the first invalid element
@@ -70,8 +68,8 @@ angular.module('bootstrap.angular.validation').directive('form', [
7068
*
7169
* https://api.jquery.com/event.stopimmediatepropagation/
7270
*/
73-
e.stopImmediatePropagation();
74-
return false;
71+
//e.stopImmediatePropagation();
72+
return true;
7573
});
7674
};
7775

0 commit comments

Comments
 (0)