mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #14449 from grafana/14437-tag-filter
Filter tags select box on text input #14437
This commit is contained in:
commit
076a1be03a
@ -51,6 +51,10 @@ export class TagFilter extends React.Component<Props, any> {
|
|||||||
getOptionLabel: i => i.label,
|
getOptionLabel: i => i.label,
|
||||||
value: tags,
|
value: tags,
|
||||||
styles: ResetStyles,
|
styles: ResetStyles,
|
||||||
|
filterOption: (option, searchQuery) => {
|
||||||
|
const regex = RegExp(searchQuery, 'i');
|
||||||
|
return regex.test(option.value);
|
||||||
|
},
|
||||||
components: {
|
components: {
|
||||||
Option: TagOption,
|
Option: TagOption,
|
||||||
IndicatorsContainer,
|
IndicatorsContainer,
|
||||||
|
Loading…
Reference in New Issue
Block a user