Bug: With numberOfMonths >= 2 and, when tabbing from the `Prev` navigation button, it goes to the calendar instead of the `Next` navigation button
euljr opened this issue Β· comments
Bug description
Hello π
I found a weird behavior when tabbing through elements when there are multiple months, when tabbing from one navigation button, it doesn't focus on the next navigation button, instead, the focus goes to the calendar.
I guess this happens because the captions are inside each month
container π€.
I'll get some time to learn the codebase, in case there isn't a fix before, I'll see if I can help with something other than opening this issue π
To reproduce
Fork this CodeSandbox: https://codesandbox.io/s/intelligent-sunset-z6ypid with the code to reproduce the issue.
Steps
- Focus
Prev
navigation button (<) - Press
Tab
- The focus is now on the calendar, and not the caption navigation
Expected behavior
When focused on the Prev
navigation button, it should focus on the Next
navigation button after pressing Tab
.
Screenshots
@euljr Thanks for the bug report. Will work on it!