@apexcura/ui-components 0.0.14-Beta282 → 0.0.14-Beta283
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 +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -925,6 +925,9 @@ var DateRangePickerElement = (props) => {
|
|
|
925
925
|
if (start && start.isAfter(today2)) {
|
|
926
926
|
start = today2;
|
|
927
927
|
}
|
|
928
|
+
if (start && end && (start.isSame(today2) || end.isAfter(today2))) {
|
|
929
|
+
start = today2;
|
|
930
|
+
}
|
|
928
931
|
const adjustedDates = [start, end].map((date) => date ? date : null);
|
|
929
932
|
props.onChange && props.onChange(adjustedDates);
|
|
930
933
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -858,6 +858,9 @@ var DateRangePickerElement = (props) => {
|
|
|
858
858
|
if (start && start.isAfter(today2)) {
|
|
859
859
|
start = today2;
|
|
860
860
|
}
|
|
861
|
+
if (start && end && (start.isSame(today2) || end.isAfter(today2))) {
|
|
862
|
+
start = today2;
|
|
863
|
+
}
|
|
861
864
|
const adjustedDates = [start, end].map((date) => date ? date : null);
|
|
862
865
|
props.onChange && props.onChange(adjustedDates);
|
|
863
866
|
}
|