From d75a24007646e6492d5a892d25ea64216e4f63ec Mon Sep 17 00:00:00 2001 From: Nicolas Ferrero Date: Tue, 27 Apr 2021 08:00:35 +0000 Subject: [PATCH] Update for version 20210427-grafana7 --- src/directives/tag_input.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/directives/tag_input.ts b/src/directives/tag_input.ts index 0ff6e0f..c8ac0a5 100644 --- a/src/directives/tag_input.ts +++ b/src/directives/tag_input.ts @@ -17,6 +17,7 @@ export class TagInputCtrl { public getTags(): Promise { const query = this.$scope.getTagInputValue(); + //we filter the tags in function of what is in the query return this.promiseUtils.resolvedPromise((this.tagValues || []) .filter((tagValue) => _.includes(tagValue, query)) .slice(0, TAG_VALUE_SUGGESTIONS_LIMIT)