You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/06/18 13:02:42 UTC
[GitHub] [trafficcontrol] ocket8888 opened a new issue #3685: Allow form
submission in TP on hitting ENTER instead of clicking a button
ocket8888 opened a new issue #3685: Allow form submission in TP on hitting ENTER instead of clicking a button
URL: https://github.com/apache/trafficcontrol/issues/3685
A lot of the forms in Traffic Portal can only be submitted by clicking on the "Submit"/"Login"/"Create"/"Save Changes" button, but I'd like to be able to tab through the inputs and hit <kbd>Enter</kbd> when I'm done to submit. This is because currently form submission is being handled by the `ng-click` attribute of a button, but could support both clicking a button _and_ hitting <kbd>Enter</kbd> by instead using the `ng-submit` attribute of the form. The only change in logic would be to move the disabled conditions in the submit button to the submit handler (and actually I'm not 100% sure if that's necessary - it's possible that form submission is handled by emulating a click on a `form button[type="submit"]` in those cases; but that could easily also vary by browser).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services