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