@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreui/vue-pro",
3
- "version": "4.11.1",
3
+ "version": "4.11.2",
4
4
  "description": "UI Components Library for Vue.js",
5
5
  "keywords": [
6
6
  "vue",
@@ -846,7 +846,10 @@ const CDateRangePicker = defineComponent({
846
846
  onClick: () => {
847
847
  const date = new Date()
848
848
  startDate.value = date
849
- endDate.value = date
849
+ if (props.range) {
850
+ endDate.value = date
851
+ }
852
+
850
853
  calendarDate.value = date
851
854
  },
852
855
  },
@@ -859,7 +862,10 @@ const CDateRangePicker = defineComponent({
859
862
  color: props.cancelButtonColor,
860
863
  onClick: () => {
861
864
  startDate.value = initialStartDate.value
862
- endDate.value = initialEndDate.value
865
+ if (props.range) {
866
+ endDate.value = initialEndDate.value
867
+ }
868
+
863
869
  visible.value = false
864
870
  },
865
871
  size: props.cancelButtonSize,