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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
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 =
|
|
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;
|