Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Opening this to see if we can finally merge this fix. On the previous PR (#2084) we have not gotten the final approval from the user that requested changes.
Original message by greglo in PR #2084:
Keyboard navigation is broken for the date range picker. The following bugs exist:
The simplest and clearest solution that came to be is simply to put the day picker after the currently active input. In this way, the dropdown always appears next in the tab-order to the input the user has selected. The existing blur handler in the dropdown means that tabbing through the component will leave the dropdown closed at the end.
The react keys ensure that the element is just moved over in the DOM and so there is no flickering.
Fixes #1809
@majapw
[1] Before, passing through the component using tab
https://user-images.githubusercontent.com/2872321/106044360-7dfb9c80-6094-11eb-86a5-9e2f2b4f71b0.gif
[2] Before, enter values with keyboard
https://user-images.githubusercontent.com/2872321/106044357-7d630600-6094-11eb-90a6-f5c554303691.gif
[3] After, passing through the component using tab
https://user-images.githubusercontent.com/2872321/106044352-7c31d900-6094-11eb-9164-0e00a33db517.gif