@coreui/react-pro 4.15.0 → 4.15.1
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
|
@@ -9646,12 +9646,12 @@ var CDateRangePicker = React$1.forwardRef(function (_a, ref) {
|
|
|
9646
9646
|
todayButton && (React$1.createElement(CButton, { className: "me-auto", color: todayButtonColor, size: todayButtonSize, variant: todayButtonVariant, onClick: function () {
|
|
9647
9647
|
var date = new Date();
|
|
9648
9648
|
handleStartDateChange(date);
|
|
9649
|
-
handleEndDateChange(date);
|
|
9649
|
+
range && handleEndDateChange(date);
|
|
9650
9650
|
setCalendarDate(date);
|
|
9651
9651
|
} }, todayButton)),
|
|
9652
9652
|
cancelButton && (React$1.createElement(CButton, { color: cancelButtonColor, size: cancelButtonSize, variant: cancelButtonVariant, onClick: function () {
|
|
9653
9653
|
handleStartDateChange(initialStartDate);
|
|
9654
|
-
handleEndDateChange(initialEndDate);
|
|
9654
|
+
range && handleEndDateChange(initialEndDate);
|
|
9655
9655
|
setVisible(false);
|
|
9656
9656
|
} }, cancelButton)),
|
|
9657
9657
|
confirmButton && (React$1.createElement(CButton, { color: confirmButtonColor, size: confirmButtonSize, variant: confirmButtonVariant, onClick: function () {
|