Skip to content
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

Calendar when using DayPickerInput isn't keyboard accessible #601

Closed
saramarie opened this issue Jan 8, 2018 · 2 comments
Closed

Calendar when using DayPickerInput isn't keyboard accessible #601

saramarie opened this issue Jan 8, 2018 · 2 comments

Comments

@saramarie
Copy link

I'm currently implementing DayPickerInput in a project and noticed that DayPicker is keyboard accessible, but when I used the input version, it's not. What I mean is that when I'm using DayPickerInput and then I tab to the input, I can't then continue tabbing through the now opened calendar. The tab just takes me off the input and closes the calendar.

I thought this might be a problem with my own code, but I'm seeing the same behavior when I try the examples on your doc site. I've visited the page and tried it in Chrome, Firefox and Safari on my Mac.

@gpbl
Copy link
Owner

gpbl commented Jan 8, 2018

This is expected. If you need the DayPicker being accessible via keyboard, just avoid using the input and use the DayPicker instead.

@gpbl gpbl closed this as completed Jan 8, 2018
@mattgreenfield
Copy link

@gpbl - would you accept a pull request to improve this?

I believe that focusing the input and hitting the down arrow should focus the date picker. We would need to handle the fact that the input would blur and I'm sure there are many edge cases to work through.

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

No branches or pull requests

3 participants