-
Notifications
You must be signed in to change notification settings - Fork 84
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
Focus in modals is missing #207
Comments
This is a known issue with angular-ui/bootstrap I believe the relevant upstream ticket is angular-ui/bootstrap#1696 . I am personally subscribed to that thread, and the relevant controllers are littered with TODO: reimplement this comments. It is entirely possible that one of the workarounds described in the upstream thread would work for us . |
This is also causing:
|
Add focus to all modals refs openhealthcare/opal#207
Add focus to our modals. refs #207
@rossjones - I think this one is now fixed... you should have a login to elcid-search.herokuapp.com ! |
Pings @GabPoll @michaeledwardmarks Modals now auto-focus on an input element again. Deployed to elcid-search. |
@davidmiller do you mean that everytime a modal opens, the cursor is waiting for you in the first box? if so, then seems fixed . |
Precisely it :) On 7 August 2014 00:37, GabPoll notifications@github.com wrote:
Love regards etc David Miller |
Agree. |
Hi, Thanks |
Hi @ajmalsha If I understand you correctly you're looking for two things:
Both of these are certainly possible. For keyboards you'll need to register a watch event on the handlers, for focus, you need to make sure you're firing the set focus call at the right time in the Angular digest cycle, which is not the cleanest thing in the world but there are known methods. (As far as I'm aware this is a generic problem with e.g. Angular and modals') How are you opening your confirmation popup? Do you have an Angular controller already? Best David |
Every time a modal is shown the focus is not set, which means having to maneouver the mouse around the screen to select the input.
Please make modals focus the initial input where possible (i.e. Add Patient should focus on the hospital number field so I can just type and press enter.
The text was updated successfully, but these errors were encountered: