15067: Makes key/value matching case insensitive.
[arvados-workbench2.git] / src / views-components / resource-properties-form / property-value-field.tsx
index a547659ffa4d35d1d7db7415da05388459453546..ce4f5a52591e6b106049edc9719d29def8a259d5 100644 (file)
@@ -49,7 +49,7 @@ const matchTagValues = ({ vocabulary, propertyKey }: PropertyValueFieldProps) =>
             : 'Incorrect value';
 
 const getSuggestions = (value: string, tagKey: string, vocabulary: Vocabulary) =>
-    getTagValues(tagKey, vocabulary).filter(v => v.label.includes(value) && v.label !== value);
+    getTagValues(tagKey, vocabulary).filter(v => v.label.toLowerCase().includes(value.toLowerCase()));
 
 const isStrictTag = (tagKey: string, vocabulary: Vocabulary) => {
     const tag = vocabulary.tags[tagKey];