@carbon/react 1.29.0 → 1.29.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.
|
@@ -199,12 +199,11 @@ const DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_r
|
|
|
199
199
|
onClose(calendarRef.current.selectedDates, dateStr, calendarRef.current);
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
|
-
};
|
|
203
|
-
|
|
202
|
+
};
|
|
204
203
|
|
|
205
204
|
const endInputField = useRef(null);
|
|
206
205
|
const calendarRef = useRef(null);
|
|
207
|
-
const savedOnChange = useSavedCallback(
|
|
206
|
+
const savedOnChange = useSavedCallback(onChange);
|
|
208
207
|
const savedOnClose = useSavedCallback(datePickerType === 'range' ? onCalendarClose : onClose);
|
|
209
208
|
const savedOnOpen = useSavedCallback(() => onOpen);
|
|
210
209
|
const datePickerClasses = cx(`${prefix}--date-picker`, {
|
|
@@ -13,7 +13,7 @@ import { useRef, useEffect, useCallback } from 'react';
|
|
|
13
13
|
* callback prop but don't want it to be added to the dependency array of an
|
|
14
14
|
* effect.
|
|
15
15
|
*
|
|
16
|
-
* @param {Function} callback
|
|
16
|
+
* @param {Function | undefined} callback
|
|
17
17
|
* @returns {Function}
|
|
18
18
|
*/
|
|
19
19
|
|
|
@@ -211,12 +211,11 @@ const DatePicker = /*#__PURE__*/React__default["default"].forwardRef(function Da
|
|
|
211
211
|
onClose(calendarRef.current.selectedDates, dateStr, calendarRef.current);
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
|
-
};
|
|
215
|
-
|
|
214
|
+
};
|
|
216
215
|
|
|
217
216
|
const endInputField = React.useRef(null);
|
|
218
217
|
const calendarRef = React.useRef(null);
|
|
219
|
-
const savedOnChange = useSavedCallback.useSavedCallback(
|
|
218
|
+
const savedOnChange = useSavedCallback.useSavedCallback(onChange);
|
|
220
219
|
const savedOnClose = useSavedCallback.useSavedCallback(datePickerType === 'range' ? onCalendarClose : onClose);
|
|
221
220
|
const savedOnOpen = useSavedCallback.useSavedCallback(() => onOpen);
|
|
222
221
|
const datePickerClasses = cx__default["default"](`${prefix}--date-picker`, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/react",
|
|
3
3
|
"description": "React components for the Carbon Design System",
|
|
4
|
-
"version": "1.29.
|
|
4
|
+
"version": "1.29.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"**/*.scss",
|
|
134
134
|
"**/*.css"
|
|
135
135
|
],
|
|
136
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "64462e40375df9f33cedb302d7a4e11c84766d24"
|
|
137
137
|
}
|