From 4b68adbe788865cd7a4a69b1c6529679b2f8e9b5 Mon Sep 17 00:00:00 2001 From: Daan de Schepper Date: Mon, 21 Aug 2017 12:20:44 +0200 Subject: [PATCH] feat(typeahead): show results when typeaheadMinLength is 0 and the search string is empty (#2352) * Update typeahead.directive.ts * Update typeahead.directive.ts --- src/typeahead/typeahead.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typeahead/typeahead.directive.ts b/src/typeahead/typeahead.directive.ts index d55bc0c920..97941712c9 100644 --- a/src/typeahead/typeahead.directive.ts +++ b/src/typeahead/typeahead.directive.ts @@ -129,7 +129,7 @@ export class TypeaheadDirective implements OnInit, OnDestroy { : e.target.textContent !== undefined ? e.target.textContent : e.target.innerText; - if (value && value.trim().length >= this.typeaheadMinLength) { + if (value != null && value.trim().length >= this.typeaheadMinLength) { this.typeaheadLoading.emit(true); this.keyUpEventEmitter.emit(e.target.value); } else {