@underverse-ui/underverse 1.0.19 → 1.0.20
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5034,7 +5034,7 @@ var Combobox = ({
|
|
|
5034
5034
|
const labelId = label ? `${resolvedId}-label` : void 0;
|
|
5035
5035
|
const enableSearch = options.length > 10;
|
|
5036
5036
|
const filteredOptions = React20.useMemo(
|
|
5037
|
-
() => enableSearch ? options.filter((o) => getOptionLabel(o).toLowerCase().includes(query.toLowerCase())) : options,
|
|
5037
|
+
() => enableSearch ? options.filter((o) => getOptionLabel(o).toLowerCase().includes(query.trim().toLowerCase())) : options,
|
|
5038
5038
|
[options, query, enableSearch]
|
|
5039
5039
|
);
|
|
5040
5040
|
const triggerRef = React20.useRef(null);
|
|
@@ -12275,7 +12275,7 @@ var MultiCombobox = ({
|
|
|
12275
12275
|
const enableSearch = normalizedOptions.length > 10;
|
|
12276
12276
|
const filtered = React34.useMemo(
|
|
12277
12277
|
() => enableSearch ? normalizedOptions.filter(
|
|
12278
|
-
(opt) => opt.label.toLowerCase().includes(query.toLowerCase()) || opt.description?.toLowerCase().includes(query.toLowerCase())
|
|
12278
|
+
(opt) => opt.label.toLowerCase().includes(query.trim().toLowerCase()) || opt.description?.toLowerCase().includes(query.trim().toLowerCase())
|
|
12279
12279
|
) : normalizedOptions,
|
|
12280
12280
|
[normalizedOptions, query, enableSearch]
|
|
12281
12281
|
);
|