x-ui-design 0.7.38 → 0.7.39
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.esm.js
CHANGED
|
@@ -2646,6 +2646,9 @@ const TimePicker = ({
|
|
|
2646
2646
|
const hourRef = useRef(null);
|
|
2647
2647
|
const minuteRef = useRef(null);
|
|
2648
2648
|
const secondRef = useRef(null);
|
|
2649
|
+
useEffect(() => {
|
|
2650
|
+
setInnerValue(propValue || defaultValue ? new Date(propValue || defaultValue) : null);
|
|
2651
|
+
}, [propValue]);
|
|
2649
2652
|
useEffect(() => {
|
|
2650
2653
|
const handleClickOutside = e => {
|
|
2651
2654
|
if (popupRef.current && !popupRef.current.contains(e.target) && inputRef.current && !inputRef.current.contains(e.target)) {
|