Skip to content

Commit bdef9d7

Browse files
committed
fix: hide non-matches
1 parent c56d17b commit bdef9d7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/ui/extended/combobox/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,15 @@ export function Combobox({
207207
)
208208
}
209209

210+
if (
211+
innerInputSearchValue &&
212+
!option.label
213+
.toLowerCase()
214+
.includes(innerInputSearchValue.toLowerCase())
215+
) {
216+
return null
217+
}
218+
210219
return (
211220
customItem?.({
212221
renderItem,

0 commit comments

Comments
 (0)