fis-component 0.0.81 → 0.0.82

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
@@ -67589,7 +67589,7 @@ const FISMenuSelect = ({ placeholder, groups, size = "md", multi = false, select
67589
67589
  if (search.trim()) {
67590
67590
  filteredItems = filteredItems.map((group) => ({
67591
67591
  ...group,
67592
- items: group.items.filter((item) => item.label.toLowerCase().includes(search.toLowerCase())),
67592
+ items: group.items.filter((item) => item?.label?.toLowerCase()?.includes(search?.toLowerCase())),
67593
67593
  }));
67594
67594
  }
67595
67595
  return filteredItems.filter((group) => group.items.length > 0);
@@ -71074,7 +71074,7 @@ const FISCombobox = forwardRef(({ className, options, value, disabled = false, t
71074
71074
  return options;
71075
71075
  return options.map((group) => ({
71076
71076
  ...group,
71077
- items: group.items.filter((item) => item.label.toLowerCase().includes(searchValue.toLowerCase())),
71077
+ items: group.items.filter((item) => item?.label?.toLowerCase()?.includes(searchValue?.toLowerCase())),
71078
71078
  }));
71079
71079
  }, [options, searchValue, computedDisplayValue]);
71080
71080
  const hasNoResults = useMemo$1(() => {