Closed scottohara closed 9 years ago
autofocus attribute only fires on page load. Fixes pending in ui-bootstrap to refocus on modal open ( https://github.com/angular-ui/bootstrap/issues/2802)
Also related: when logged out; click the Login button. Login modal appears; but does not have any focus; so hitting enter (which would normally submit the login form) actually triggers a click on the Login button again; and a second login modal is shown.
The input field that should have initial focus when a modal shows doesn't always work