We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b63036 commit 6b3fb85Copy full SHA for 6b3fb85
src/components/DateRangePicker/index.jsx
@@ -350,11 +350,13 @@ function DateRangePicker(props) {
350
// - set the active range's background to transparent color
351
// to prevent the calendar auto focusing on the day of today by default when no
352
// start date nor end date are set.
353
- // - does not set the end date of the selection range as default when mouse is out.
+ // - does not set focus on the empty selection range when mouse leaves.
354
// ---
355
356
// setActiveDate(null);
357
- // setFocusedRange([0, focusedRange[1]]);
+ if (range.startDate || range.endDate) {
358
+ setFocusedRange([0, focusedRange[1]]);
359
+ }
360
return;
361
}
362
0 commit comments