diff --git a/src/typeahead/typeahead.directive.ts b/src/typeahead/typeahead.directive.ts index 8c3635a24b..75b746f357 100644 --- a/src/typeahead/typeahead.directive.ts +++ b/src/typeahead/typeahead.directive.ts @@ -292,7 +292,10 @@ export class TypeaheadDirective implements OnInit, OnDestroy { dropup: this.dropup }); - this._outsideClickListener = this.renderer.listen('document', 'click', () => { + this._outsideClickListener = this.renderer.listen('document', 'click', (e: MouseEvent) => { + if (this.typeaheadMinLength === 0 && this.element.nativeElement.contains(e.target)) { + return; + } this.onOutsideClick(); });