Angular: Fixes minor mistake in previous bsTypeahead PR (#50411) (#50417)

(cherry picked from commit 3866debae9)

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-06-08 14:33:20 +02:00
committed by GitHub
co-authored by Torkel Ödegaard
parent 54bd556843
commit ffc7d688c2
+2 -2
View File
@@ -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) {