fis-component 0.0.62 → 0.0.63

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/esm/index.js CHANGED
@@ -73350,7 +73350,7 @@ const FISSelect = forwardRef(({ className, style, size = "md", options, value, d
73350
73350
  ];
73351
73351
  }, [options, value, multi]);
73352
73352
  const selectedItems = useMemo$1(() => {
73353
- const allItems = originalOptionsRef.current.flatMap((group) => group.items);
73353
+ const allItems = options.flatMap((group) => group.items);
73354
73354
  if (multi) {
73355
73355
  return allItems.filter((item) => value.includes(item.value));
73356
73356
  }
@@ -73358,7 +73358,7 @@ const FISSelect = forwardRef(({ className, style, size = "md", options, value, d
73358
73358
  const found = allItems.find((item) => item.value === value);
73359
73359
  return found ? [found] : [];
73360
73360
  }
73361
- }, [value, multi]);
73361
+ }, [value, multi, options]);
73362
73362
  const computedDisplayValue = () => {
73363
73363
  if (multi) {
73364
73364
  const count = value.length;