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

This commit is contained in:
Torkel Ödegaard
2022-06-08 14:09:46 +02:00
committed by GitHub
parent 74608d6480
commit 3866debae9

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) {