@apexcura/ui-components 0.0.14-Beta291 → 0.0.14-Beta293
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 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -899,7 +899,7 @@ var DateRangePickerElement = (props) => {
|
|
|
899
899
|
];
|
|
900
900
|
const disabledDate = (current) => {
|
|
901
901
|
if (props.weekrange) {
|
|
902
|
-
return current &&
|
|
902
|
+
return current && current < today.subtract(7, "d") || current > today;
|
|
903
903
|
}
|
|
904
904
|
return current && current > today;
|
|
905
905
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -832,7 +832,7 @@ var DateRangePickerElement = (props) => {
|
|
|
832
832
|
];
|
|
833
833
|
const disabledDate = (current) => {
|
|
834
834
|
if (props.weekrange) {
|
|
835
|
-
return current &&
|
|
835
|
+
return current && current < today.subtract(7, "d") || current > today;
|
|
836
836
|
}
|
|
837
837
|
return current && current > today;
|
|
838
838
|
};
|