Skip to content

Commit

Permalink
fix(typeahead): apply existing text on focus and click with typeahead…
Browse files Browse the repository at this point in the history
…MinLength = 0 (#3322)
  • Loading branch information
IlyaSurmay authored and valorkin committed Jan 5, 2018
1 parent 0ad82bb commit 21813b1
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 @@ -233,7 +233,7 @@ export class TypeaheadDirective implements OnInit, OnDestroy {
onFocus(): void {
if (this.typeaheadMinLength === 0) {
this.typeaheadLoading.emit(true);
this.keyUpEventEmitter.emit('');
this.keyUpEventEmitter.emit(this.element.nativeElement.value || '');
}
}

Expand Down

0 comments on commit 21813b1

Please sign in to comment.