Date Range picker opens with active date out of view when value is not in current month #14957
Labels
🐛 bug
Any issue that describes a bug
📆 calendar
📅 date-range-picker
keyboard-navigation
🆕 status: new
Description
The Range Picker doesn't specify an active date (assuming it defaults to 'today'?), just the view range which opens the calendar on some months view while the active date the keyboard navigation is moving is on another altogether. This causes some odd behavior where the views change, but you can't see where the active is and on selection the view jumps to the active date abruptly. I'm guessing the old calendar behavior ensured the active date is clamped to the view or it never worked. Whether that's good behavior for the calendar itself (the picker should be using public API to configure) is up for discussion.
Related to #14918
Steps to reproduce
OR https://stackblitz.com/edit/ynczpj
Result
Views change, the active is not visible since it's not in the view and on selection the view jumps to it:
Expected result
The active date should be placed in the active view to avoid such jumping or confusing navigation.
Attachments
Attach a sample if available, and screenshots, if applicable.
The text was updated successfully, but these errors were encountered: