mautourco-components 0.2.132 → 0.2.133

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.
@@ -112,7 +112,7 @@ var DateTimePicker = function (_a) {
112
112
  if (isOpen) {
113
113
  ensurePopoverVisible(popoverContentRef, triggerRef, isOpen);
114
114
  }
115
- if (openRef.current !== isOpen) {
115
+ if (openRef.current !== isOpen && !!selectedDateRange) {
116
116
  setDefaultMonth(selectedDateRange.from);
117
117
  }
118
118
  openRef.current = isOpen;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mautourco-components",
3
- "version": "0.2.132",
3
+ "version": "0.2.133",
4
4
  "private": false,
5
5
  "description": "Bibliothèque de composants Mautourco pour le redesign",
6
6
  "main": "dist/index.js",
@@ -163,7 +163,7 @@ const DateTimePicker: React.FC<DateTimePickerProps> = ({
163
163
  if (isOpen) {
164
164
  ensurePopoverVisible(popoverContentRef, triggerRef, isOpen);
165
165
  }
166
- if (openRef.current !== isOpen) {
166
+ if (openRef.current !== isOpen && !!selectedDateRange) {
167
167
  setDefaultMonth(selectedDateRange.from);
168
168
  }
169
169
  openRef.current = isOpen;