Skip to content

Commit

Permalink
removed addition of form enter event handler when aaSubmitForm elemen…
Browse files Browse the repository at this point in the history
…t has type='submit'
  • Loading branch information
cliechty committed Nov 13, 2014
1 parent 7f5a2c7 commit a859302
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/formExtensions/directives/aaSubmitForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@
}

element.on('click', submit);

if (attrs.type === 'submit') {
//this should be the form's default 'on enter' behavior for submission
ngForm.$aaFormExtensions.$onEnterKey = submit;
}
}
};
}]);
Expand Down

0 comments on commit a859302

Please sign in to comment.