Filter tags select box on text input #14437

(cherry picked from commit 6bb9415b0e)
This commit is contained in:
Johannes Schill
2018-12-13 13:31:07 +01:00
committed by Torkel Ödegaard
parent ed05e9de72
commit 43c0405ae1
@@ -51,6 +51,10 @@ export class TagFilter extends React.Component<Props, any> {
getOptionLabel: i => i.label,
value: tags,
styles: ResetStyles,
filterOption: (option, searchQuery) => {
const regex = RegExp(searchQuery, 'i');
return regex.test(option.value);
},
components: {
Option: TagOption,
IndicatorsContainer,