File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -465,15 +465,15 @@ var formDirectiveFactory = function(isNgForm) {
465
465
// IE 9 is not affected because it doesn't fire a submit event and try to do a full
466
466
// page reload if the form was destroyed by submission of the form via a click handler
467
467
// on a button in the form. Looks like an IE9 specific bug.
468
+ //
469
+ // Checking event.preventDefault and calling event.returnValue were removed.
468
470
var handleFormSubmission = function ( event ) {
469
471
scope . $apply ( function ( ) {
470
472
controller . $commitViewValue ( ) ;
471
473
controller . $setSubmitted ( ) ;
472
474
} ) ;
473
475
474
- event . preventDefault
475
- ? event . preventDefault ( )
476
- : event . returnValue = false ; // IE
476
+ event . preventDefault ( ) ;
477
477
} ;
478
478
479
479
addEventListenerFn ( formElement [ 0 ] , 'submit' , handleFormSubmission ) ;
You can’t perform that action at this time.
0 commit comments