Skip to content

Commit

Permalink
feat(typeahead): show results when typeaheadMinLength is 0 and the se…
Browse files Browse the repository at this point in the history
…arch string is empty (#2352)

* Update typeahead.directive.ts

* Update typeahead.directive.ts
  • Loading branch information
ddeschepper authored and valorkin committed Aug 21, 2017
1 parent c6ef77b commit 4b68adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typeahead/typeahead.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4b68adb

Please sign in to comment.