Skip to content

Commit

Permalink
fix autocomplete filter to make it case insensitive (argoproj#91)
Browse files Browse the repository at this point in the history
Signed-off-by: ishitasequeira <[email protected]>
  • Loading branch information
ishitasequeira committed Feb 3, 2021
1 parent b6e535c commit a7404f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/autocomplete/autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const Autocomplete = (props: AutocompleteProps) => {
inputProps={props.inputProps}
wrapperProps={wrapperProps}
shouldItemRender={(item: AutocompleteOption, val: string) => {
return !props.filterSuggestions || item.label.includes(val);
return !props.filterSuggestions || item.label.toLowerCase().includes(val.toLowerCase());
}}
renderMenu={function(menuItems, _, style) {
if (menuItems.length === 0) {
Expand Down

0 comments on commit a7404f5

Please sign in to comment.