Calendar is open.
Expected behavior
Calendar is closed
I set handleBlur function for onBlur, onSelect and onCalendarClose events. I think, that input loses focus for a split second, after executing itCalendarCloses, but then comes into focus again
const handleBlur = () => {
pickerRef.current?.input?.blur(); // it doesn't work
setTimeout(() => {
pickerRef.current?.input?.blur(); // it is works
}, 1000);
};
Date picker does not blur input after date select.
Steps to reproduce the behavior:
Expected behavior Calendar closes, input blurs.
Even worse:
I set handleBlur function for onBlur, onSelect and onCalendarClose events. I think, that input loses focus for a split second, after executing itCalendarCloses, but then comes into focus again
Any help how can I control input focus, please?