anteriority-ui 1.14.0 → 1.14.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/.verify-bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/.verify-bundle.js
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 59204457 bytes
|
|
4
|
+
sha256: f1db148e270819a80c15168f9ef8818e80df77f0f972641e9e2d18b408b731cc
|
package/package.json
CHANGED
|
@@ -72,6 +72,11 @@ const CalendarPicker = ({
|
|
|
72
72
|
const rangeStart = range ? parseValueToDate(rangeValue.start) : null;
|
|
73
73
|
const rangeEnd = range ? parseValueToDate(rangeValue.end) : null;
|
|
74
74
|
const selectedDate = !range ? parseValueToDate(value) : null;
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
if (isInline || !isOpen) return void 0;
|
|
77
|
+
const anchorDate = range ? rangeStart || rangeEnd : selectedDate;
|
|
78
|
+
if (anchorDate) setCurrentDate(anchorDate);
|
|
79
|
+
}, [isOpen]);
|
|
75
80
|
useEffect(() => {
|
|
76
81
|
if (!isPopoverOpen) {
|
|
77
82
|
setHoveredDay(null);
|