@dloizides/ui-forms 1.18.3 → 1.18.6

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.mjs CHANGED
@@ -865,8 +865,11 @@ function RecentInputField({
865
865
  );
866
866
  const handleBlur = useCallback(
867
867
  (event) => {
868
- if (latestText.current.trim() !== "") remember(latestText.current);
869
- setTimeout(() => setIsOpen(false), CLOSE_DELAY_MS);
868
+ const blurredText = latestText.current;
869
+ setTimeout(() => {
870
+ setIsOpen(false);
871
+ if (blurredText.trim() !== "") remember(blurredText);
872
+ }, CLOSE_DELAY_MS);
870
873
  onBlur?.(event);
871
874
  },
872
875
  [remember, onBlur]
@@ -970,6 +973,7 @@ var chipStyles = StyleSheet.create({
970
973
  paddingHorizontal: 12,
971
974
  paddingVertical: 6,
972
975
  minHeight: MIN_TARGET_PX,
976
+ minWidth: MIN_TARGET_PX,
973
977
  justifyContent: "center",
974
978
  borderRadius: SOLID_RADIUS,
975
979
  backgroundColor: TRANSPARENT_COLOR,
@@ -979,6 +983,7 @@ var chipStyles = StyleSheet.create({
979
983
  paddingHorizontal: OUTLINE_PAD_H,
980
984
  paddingVertical: OUTLINE_PAD_V,
981
985
  minHeight: MIN_TARGET_PX,
986
+ minWidth: MIN_TARGET_PX,
982
987
  justifyContent: "center",
983
988
  borderRadius: OUTLINE_RADIUS,
984
989
  borderWidth: 1