From 6bb9415b0ed88d791132941b74454fffe3d7d072 Mon Sep 17 00:00:00 2001 From: Johannes Schill Date: Tue, 11 Dec 2018 15:04:40 +0100 Subject: [PATCH] Filter tags select box on text input #14437 --- public/app/core/components/TagFilter/TagFilter.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/app/core/components/TagFilter/TagFilter.tsx b/public/app/core/components/TagFilter/TagFilter.tsx index 6a4203f8739..004221657ef 100644 --- a/public/app/core/components/TagFilter/TagFilter.tsx +++ b/public/app/core/components/TagFilter/TagFilter.tsx @@ -51,6 +51,10 @@ export class TagFilter extends React.Component { 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,