@gisce/react-ooui 1.0.24-rc.0 → 1.0.24

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.
@@ -18806,9 +18806,9 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18806
18806
  getContext: k,
18807
18807
  setOriginalValue: $,
18808
18808
  elementHasLostFocus: B
18809
- } = F || {}, P = useRef([]), [D, j] = useState([]), U = t && t[0] || void 0, L = t && t[1] || "";
18809
+ } = F || {}, P = useRef([]), [D, j] = useState([]), U = t && t[0], L = t && t[1] || "";
18810
18810
  useEffect(() => {
18811
- !Array.isArray(t) && t && K(t);
18811
+ !Array.isArray(t) && !isNaN(t) && K(t);
18812
18812
  }, [t]), useEffect(() => {
18813
18813
  U && L.length === 0 ? K(U) : U && L.length > 0 ? w(L) : !U && !L && w(O.current || "");
18814
18814
  }, [t]);