@butternutbox/pawprint-native 1.3.0 → 1.3.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.
package/dist/index.js CHANGED
@@ -9128,6 +9128,16 @@ var SelectFieldRoot = React66.forwardRef(
9128
9128
  keyboardSub.remove();
9129
9129
  };
9130
9130
  }, [isOpen, searchable, isSearching, searchQuery]);
9131
+ const isOpenRef = React66.useRef(isOpen);
9132
+ React66.useEffect(() => {
9133
+ isOpenRef.current = isOpen;
9134
+ });
9135
+ const handleSearchBlur = () => {
9136
+ setTimeout(() => {
9137
+ var _a2;
9138
+ if (isOpenRef.current) (_a2 = searchInputRef.current) == null ? void 0 : _a2.focus();
9139
+ }, 50);
9140
+ };
9131
9141
  const isCompound = React66.Children.toArray(children).some(
9132
9142
  (child) => React66.isValidElement(child) && child.type === SelectFieldContent
9133
9143
  );
@@ -9218,6 +9228,7 @@ var SelectFieldRoot = React66.forwardRef(
9218
9228
  ref: searchInputRef,
9219
9229
  value: searchQuery,
9220
9230
  onChangeText: setSearchQuery,
9231
+ onBlur: handleSearchBlur,
9221
9232
  placeholder: searchPlaceholder != null ? searchPlaceholder : "Search...",
9222
9233
  returnKeyType: "search",
9223
9234
  clearButtonMode: "never",