SingleDatePicker - Cannot open dialog from question mark button using Enter key.
react-dates version [email protected]
Describe the bug After navigating to the question mark button using the tab key, hitting the enter key does not open the short cuts dialog, only hitting question mark does.
This does not seem to be the case on story book (https://react-dates.github.io/react-dates/?path=/story/singledatepicker-sdp--default) but I cannot figure out why.
Source code (including props configuration) `import SingleDatePicker from "react-dates/lib/components/SingleDatePicker"; import "react-dates/initialize";
<SingleDatePicker
displayFormat="DD/MM/YYYY"
disabled={false}
withPortal
id={1}
numberOfMonths={2}
placeholder="Select Date"
showDefaultInputIcon={true}
date={date}
readOnly={true}
onDateChange={onDateChange}
focused={this.state.focused}
renderMonth="MMMM YYYY"
/>`Desktop (please complete the following information): ` - OS: Windows 10 Pro
- Browser Chrome
- Version 123.0.6312.123`
Additional context It seems that also when you include showDefaultInputIcon the enter key stops working on the ? button. However when you do not include showDefaultInputIcon there is no way to prevent auto open on focus and on date selection focus is lost so aria does not audio the component content update, but the top level page.
Source: react-dates/react-dates