diff --git a/components/typeahead/typeahead.directive.ts b/components/typeahead/typeahead.directive.ts index 50d6c53395..2b3d058156 100644 --- a/components/typeahead/typeahead.directive.ts +++ b/components/typeahead/typeahead.directive.ts @@ -104,8 +104,13 @@ export class Typeahead implements OnInit { } private processMatches() { + this._matches = []; + if (!this.typeahead) { + return; + } + // If singleWords, break model here to not be doing extra work on each iteration let normalizedQuery = (this.typeaheadLatinize ? TypeaheadUtils.latinize(this.cd.model) : this.cd.model).toString().toLowerCase(); normalizedQuery = this.typeaheadSingleWords ? TypeaheadUtils.tokenize(normalizedQuery, this.typeaheadWordDelimiters, this.typeaheadPhraseDelimiters) : normalizedQuery;