React-datepicker: Keyboard navigation does not work for inline or custom input

Created on 21 Feb 2017  路  5Comments  路  Source: Hacker0x01/react-datepicker

It looks like you cannot navigate in the picker using the left/right/up/down keys for inline or with a custom input. See the inline and custom input examples in https://hacker0x01.github.io/react-datepicker/.

bug wontfix

Most helpful comment

@amit-coditas I still cannot get keyboard navigation to work for the inline picker and I think the reason is because there is no input to receive the onKeyDown event. However, I was able to get keyboard navigation to work for my custom input. I just had to add onKeyDown={this.props.onKeyDown} to my custom input.

All 5 comments

@amit-coditas I still cannot get keyboard navigation to work for the inline picker and I think the reason is because there is no input to receive the onKeyDown event. However, I was able to get keyboard navigation to work for my custom input. I just had to add onKeyDown={this.props.onKeyDown} to my custom input.

Also not getting keyboard navigation to work when using the inline version. Would really like a fix to this. Awsome component btw!

@benbcai had the solution for me. I am using a custom input.

I'm interested in that too.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings