-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent submission on enter key #119
Comments
No word on this? |
its because of this: https://github.com/AngularAgility/AngularAgility/blob/master/src/formExtensions/directives/ngForm.js#L432-432 and this: thats probably an extensiblity point that needs to get built in to the provider in order to do that |
"thats probably an extensiblity point that needs to get built in to the provider in order to do that" I'm not sure what you mean by that? |
Actually it looks like if you remove the type="submit" from the aa-submit-form directive target element (the button you have it on) it won't auto do it anymore. Give that a shot. Lemme know. |
@johnculviner This workaround does solve the problem, thanks. (Keep up the great work, guys!) |
When I was using the standard angular
ng-submit
on my forms, hitting the enter key while in an input field did not submit the form. Now using AA it does.Is there a way to only submit the form when explicitly clicking the submit button?
The text was updated successfully, but these errors were encountered: