scottohara / loot

An implementation of some of the core MS Money features in Ruby on Rails
MIT License
4 stars 3 forks source link

Initial focus not always right #34

Closed scottohara closed 9 years ago

scottohara commented 10 years ago

The input field that should have initial focus when a modal shows doesn't always work

scottohara commented 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)

scottohara commented 9 years ago

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.