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

Datepicker popup should close on blur event #1880

Closed
julesbou opened this issue Mar 3, 2014 · 7 comments
Closed

Datepicker popup should close on blur event #1880

julesbou opened this issue Mar 3, 2014 · 7 comments

Comments

@julesbou
Copy link

julesbou commented Mar 3, 2014

When tabbing out of a datepicker field, the datepicker remains open, it should be closed.

We're using this fix for now: StarterSquad/bootstrap-bower@902cc84

@bekos
Copy link
Contributor

bekos commented Mar 8, 2014

@julesbou After tabbing out of datepicker input, focus goes to the to the calendar itself (unless you have appended it to the <body>) So I don't see a reason to close it.

This would be a nice feature, but I think it's more complex.

@JohnYoungers
Copy link

I've added this fix to my project; I can't think of any use case where having the focus go to the calendar is something the user's would want

If they're filling out the form strictly from the keyboard, they're going to want to get that date typed in and move to the next field, not tab through a bunch of controls in a calendar.

@bekos
Copy link
Contributor

bekos commented Mar 9, 2014

@jayoungers Moving the focus to the calendar allows keyboard interaction, like arrow keys, page up/down etc. This is a standard pattern and many keyboard only users would want to use the calendar this way instead of writing the date, because navigating, they can for example see which dates are disabled etc.

BTW datepicker's accessibility is a work in progress.

@Hamilton-Justin
Copy link

@bekos "the standard pattern" that you identified in your previous post seems to be flawed. It's frustrating feature to everyone that has used it within our web app. Those that are filling in the form via keyboard always have to move their hands to a mouse to choose a date or click outside the datepicker. Many times the current date is the one they want.
Those that have tried to tab out of the input field get noticeably frustrated when they realize it's entered into the datepicker.

@JohnYoungers
Copy link

@bekos Just saw your response from earlier now:

I can understand needing the ability for users to select dates via the keyboard, but I don't think the tab key is the way to do it. I'd recommend having the arrow keys control the calendar popup, and allow the tab key to move on to the next input as expected

@bekos
Copy link
Contributor

bekos commented Mar 13, 2014

@Hamilton-Justin The latest released version of the datepicker does not follow this pattern! Feel free to experiment with #1922.

@rvanbaalen
Copy link
Contributor

Closing due to inactivity. Feel free to reopen if this is still an issue in UI Bootstrap 0.13.0

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

Successfully merging a pull request may close this issue.

5 participants