diff --git a/components/typeahead/typeahead.directive.ts b/components/typeahead/typeahead.directive.ts index 50d6c53395..f02168d5c9 100644 --- a/components/typeahead/typeahead.directive.ts +++ b/components/typeahead/typeahead.directive.ts @@ -262,6 +262,11 @@ export class Typeahead implements OnInit { } } + @HostListener('blur', ['$event.target']) + onblur() { + this.hide(); + } + public changeModel(value:any) { let valueStr:string = ((typeof value === 'object' && this.typeaheadOptionField) ? value[this.typeaheadOptionField] : value).toString(); this.cd.viewToModelUpdate(valueStr);