From ffc7d688c2d4056c304c1b9d07ea6d057eeb6410 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Wed, 8 Jun 2022 08:33:20 -0400 Subject: [PATCH] Angular: Fixes minor mistake in previous bsTypeahead PR (#50411) (#50417) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 3866debae91e1a11c8d89e466bb8ecc72c5b48d3) Co-authored-by: Torkel Ödegaard --- public/app/angular/bsTypeahead.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/angular/bsTypeahead.ts b/public/app/angular/bsTypeahead.ts index 515f82994ba..b604bef52a8 100644 --- a/public/app/angular/bsTypeahead.ts +++ b/public/app/angular/bsTypeahead.ts @@ -35,8 +35,8 @@ coreModule.directive('bsTypeahead', [ return value; }, }); - var typeahead = element.dat('typeahead'); - typeahead.lookup = function (ev: any) { + var typeahead = element.data('typeahead'); + typeahead.lookup = function () { var items; this.query = this.$element.val() || ''; if (this.query.length < this.options.minLength) {