File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/uui-combobox/lib Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ const avatars = [
63
63
] ;
64
64
65
65
const basicFilter = ( options : string [ ] , search : string ) =>
66
- options . filter ( option => option . includes ( search ) ) ;
66
+ options . filter ( option => option . toLowerCase ( ) . includes ( search . toLowerCase ( ) ) ) ;
67
67
68
68
const renderAvatar = ( option : any ) => html ` < uui-combobox-list-option
69
69
.displayValue =${ option . name }
@@ -218,7 +218,9 @@ Avatars.args = {
218
218
options : avatars ,
219
219
renderMod : ( avatar : any ) => renderAvatar ( avatar ) ,
220
220
filter : ( options : any [ ] , search : string ) =>
221
- options . filter ( option => option . name . includes ( search ) ) ,
221
+ options . filter ( option =>
222
+ option . name . toLowerCase ( ) . includes ( search . toLowerCase ( ) )
223
+ ) ,
222
224
} ;
223
225
224
226
export const CountrySelect : Story = props => {
You can’t perform that action at this time.
0 commit comments