We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d2ff20 commit 27dd8a2Copy full SHA for 27dd8a2
src/components/ui/extended/combobox/index.tsx
@@ -207,13 +207,19 @@ export function Combobox({
207
)
208
}
209
210
- if (
211
- innerInputSearchValue &&
212
- !option.label
+ if (customItem && innerInputSearchValue.trim() !== '') {
+ const _search = innerInputSearchValue
213
.toLowerCase()
214
- .includes(innerInputSearchValue.toLowerCase())
215
- ) {
216
- return null
+ .trim()
+ const _keys =
+ option.keywords &&
+ option.keywords.some((keyword) =>
217
+ keyword.toLowerCase().trim().includes(_search)
218
+ )
219
+
220
+ if (!_keys) {
221
+ return null
222
+ }
223
224
225
return (
0 commit comments