@coreui/vue-pro 4.11.1 → 4.11.2

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.
package/dist/index.js CHANGED
@@ -8070,7 +8070,9 @@ const CDateRangePicker = vue.defineComponent({
8070
8070
  onClick: () => {
8071
8071
  const date = new Date();
8072
8072
  startDate.value = date;
8073
- endDate.value = date;
8073
+ if (props.range) {
8074
+ endDate.value = date;
8075
+ }
8074
8076
  calendarDate.value = date;
8075
8077
  },
8076
8078
  }, () => props.todayButton),
@@ -8079,7 +8081,9 @@ const CDateRangePicker = vue.defineComponent({
8079
8081
  color: props.cancelButtonColor,
8080
8082
  onClick: () => {
8081
8083
  startDate.value = initialStartDate.value;
8082
- endDate.value = initialEndDate.value;
8084
+ if (props.range) {
8085
+ endDate.value = initialEndDate.value;
8086
+ }
8083
8087
  visible.value = false;
8084
8088
  },
8085
8089
  size: props.cancelButtonSize,