Clearable Causes onBlur
In my code, I am using react-datepicker as the date part of a date/time field. We wish to implement onFocus/onBlur-onBlurChange functionality.
This is the sequence expected within our setup along with what should be triggering at which point:
- Click Datepicker, select a date. Field Gains Focus
- Hit Tab. Enter a Hour.
- Hit Tab. Enter a Minute.
- Hit Tab. Select AM/PM.
- Hit Tab. Field Loses Focus and Change
Alternatively, if no values were entered or selected and you just tabbed through, field would Lose Focus at step 5.
However, Clearable is causing problems with that sequence. What happens instead is;
- Click Datepicker, select a date. Field Gains Focus
- Hit Tab. Field Loses Focus on Change (This is where Clearable seems to be)
- Hit Tab. Enter a Hour.
- Hit Tab. Enter a Minute.
- Hit Tab. Select AM/PM.
- Hit Tab to exit field.

I have attempted to remove Clearable(seen below) and it will tab through appropriately.

Thank you in advance, I feel this might be a desired fix beyond just our means.
As a workaround to get the exact semantics that you want, I suggest implementing clearable externally from this component, i.e. a button that clears the selected date in your state.
Yes, thank you for the suggestion, but we're looking to keep the interface of our field somewhat clean and not cluttered with extra buttons, so it would be the most ideal case that the 'clearable' button would work for us if changed.
I understand this may be a long shot, but we wanted to give it a shot.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.