Commit 076a1be0 by Torkel Ödegaard Committed by GitHub

Merge pull request #14449 from grafana/14437-tag-filter

Filter tags select box on text input #14437
parents 71bf5ca8 6bb9415b
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment