I am using the React-date-picker API. I don't get any feedback when I key down whilst the calendar is open. On Day click is working fine. However, the key-down event isn't working when key down after click on the calendar icon to open the calendar. I can't log out.
const onKeyDown = (e: React.KeyboardEvent) => {
e.preventDefault
if (e.key === 'Enter') {
console.log('works')
}
}
onKeyDown = {onKeyDown}
onDayClick = {onDayClick}