@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.js
CHANGED
|
@@ -4854,7 +4854,7 @@ var Combobox = ({
|
|
|
4854
4854
|
const labelId = label ? `${resolvedId}-label` : void 0;
|
|
4855
4855
|
const enableSearch = options.length > 10;
|
|
4856
4856
|
const filteredOptions = React20.useMemo(
|
|
4857
|
-
() => enableSearch ? options.filter((o) => getOptionLabel(o).toLowerCase().includes(query.toLowerCase())) : options,
|
|
4857
|
+
() => enableSearch ? options.filter((o) => getOptionLabel(o).toLowerCase().includes(query.trim().toLowerCase())) : options,
|
|
4858
4858
|
[options, query, enableSearch]
|
|
4859
4859
|
);
|
|
4860
4860
|
const triggerRef = React20.useRef(null);
|
|
@@ -12095,7 +12095,7 @@ var MultiCombobox = ({
|
|
|
12095
12095
|
const enableSearch = normalizedOptions.length > 10;
|
|
12096
12096
|
const filtered = React34.useMemo(
|
|
12097
12097
|
() => enableSearch ? normalizedOptions.filter(
|
|
12098
|
-
(opt) => opt.label.toLowerCase().includes(query.toLowerCase()) || opt.description?.toLowerCase().includes(query.toLowerCase())
|
|
12098
|
+
(opt) => opt.label.toLowerCase().includes(query.trim().toLowerCase()) || opt.description?.toLowerCase().includes(query.trim().toLowerCase())
|
|
12099
12099
|
) : normalizedOptions,
|
|
12100
12100
|
[normalizedOptions, query, enableSearch]
|
|
12101
12101
|
);
|