Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Reset Focus After Enter/Space Selection in DatePicker Popup Mode To Original Input #4243

Closed
acgentry opened this issue Aug 20, 2015 · 7 comments

Comments

@acgentry
Copy link

In the datepicker, in popup mode, if you select a date using the enter/space key the original input box is no longer in focus. This is reproducible in the directives examples page.

I am unable to see any settings or hooks that would fix this behavior. Pardon if I am missing something.

fyi, I am aware that I can create a directive to set focus back to the input, but I would assume this would be handled better within the datepicker directive itself.

acg

@krisurnok
Copy link

#4244

@krisurnok
Copy link

i have made some change in code. please try it
#4244

@wesleycho wesleycho modified the milestones: 1.1 (ARIA Accessibility), Backlog Aug 23, 2015
@juanpujol
Copy link

👍 Please I'll also appreciate a patch for this bug. Thank you.

@stereocilia
Copy link
Contributor

+1

-Problem produced in plunkr (with some details): http://plnkr.co/edit/QVrbHA?p=preview
-My PR: #4409
-Build from my PR in plunkr: http://plnkr.co/edit/glvMLw?p=preview

I'm not sure if this is the best solution, but it seems to work in FF, Chrome, IE11.

@juanpujol
Copy link

thank you @SteffanLong, is Safari I noticed that the focus doesn't work on the calendar icon. But it's way better than right now. Thanks again.

@wesleycho wesleycho modified the milestones: 0.14.0 (Bootstrap 3.3), 1.1 (ARIA Accessibility) Sep 14, 2015
@wesleycho
Copy link
Contributor

Ah shoot, I didn't realize that there was an issue attached to the PR - this should now be addressed by 36ecf60

@acgentry
Copy link
Author

Thanks for doing the heavy lifting @stereocilia

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants