lizaui 9.0.8 → 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.
@@ -691,7 +691,11 @@ const CalendarPicker = ({
691
691
  const handleChangeToDay = () => {
692
692
  const dateNow = /* @__PURE__ */ new Date();
693
693
  const date = new Date(dateNow.getFullYear(), dateNow.getMonth(), dateNow.getDate(), 0, 0, 0);
694
- handleChange(date);
694
+ if (type === "date-range-picker") {
695
+ handleChange([date, date]);
696
+ } else {
697
+ handleChange(date);
698
+ }
695
699
  };
696
700
  const handleCloseCalendar = () => {
697
701
  if (disabled) return;