react-spectrum
2b4abbc7 - fix(#3118): DatePicker calendar cannot be opened by keyboard (#3145)

Commit
3 years ago
fix(#3118): DatePicker calendar cannot be opened by keyboard (#3145) * fix(#3118): DatePicker calendar cannot be opened by keyboard 1. Include DatePicker/DateRangePicker in tab order. 2. Fix focus management so that ArrowLeft/ArrowRight moves focus to and from the Calendar button. 3. Fix focus ring so that the focus state on the button is rendered independent of the focus state for the DatePicker input group. * fix(#3118): update tests * fix(#3118): DatePicker Enter on last segment should not focus Calendar Button TODO: With DateRangePicker, Enter should still advance from last segment of start date to first segment of end date. * Fix date range picker navigation * Fix * fix(#3118): Calendar add stopPropagation on keyboard navigation Per https://github.com/adobe/react-spectrum/pull/3145#issuecomment-1134715935 Co-authored-by: Devon Govett <devongovett@gmail.com> Co-authored-by: Danni <drobinson@livefyre.com>
Author
Michael Jordan
Parents
Loading