@gisce/react-ooui 1.0.22-rc.0 → 1.0.22
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/react-ooui.es.js
CHANGED
|
@@ -18823,9 +18823,9 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18823
18823
|
getContext: k,
|
|
18824
18824
|
setOriginalValue: $,
|
|
18825
18825
|
elementHasLostFocus: B
|
|
18826
|
-
} = F || {}, P = useRef([]), [D, j] = useState([]), U = t && t[0]
|
|
18826
|
+
} = F || {}, P = useRef([]), [D, j] = useState([]), U = t && t[0], L = t && t[1] || "";
|
|
18827
18827
|
useEffect(() => {
|
|
18828
|
-
!Array.isArray(t) && t && K(t);
|
|
18828
|
+
!Array.isArray(t) && !isNaN(t) && K(t);
|
|
18829
18829
|
}, [t]), useEffect(() => {
|
|
18830
18830
|
U && L.length === 0 ? K(U) : U && L.length > 0 ? O(L) : !U && !L && O(w.current || "");
|
|
18831
18831
|
}, [t]);
|