lizaui 9.0.9 → 9.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -693,7 +693,11 @@ const CalendarPicker = ({
693
693
  const handleChangeToDay = () => {
694
694
  const dateNow = /* @__PURE__ */ new Date();
695
695
  const date = new Date(dateNow.getFullYear(), dateNow.getMonth(), dateNow.getDate(), 0, 0, 0);
696
- handleChange(date);
696
+ if (type === "date-range-picker") {
697
+ handleChange([date, date]);
698
+ } else {
699
+ handleChange(date);
700
+ }
697
701
  };
698
702
  const handleCloseCalendar = () => {
699
703
  if (disabled) return;