Skip to content

Commit

Permalink
fix(typeahead): Blur hide with timeout, to allow other events to be t…
Browse files Browse the repository at this point in the history
…riggered. Fixes valor-software#363
  • Loading branch information
Maciej Kowalski committed Apr 12, 2016
1 parent 108d63b commit 12c1875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/typeahead/typeahead.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ export class Typeahead implements OnInit {

@HostListener('blur', ['$event.target'])
protected onBlur():void {
this.hide();
// Allow typeahead container click event to be triggered requires a timeout
setTimeout(this.hide.bind(this), 10);
}

@HostListener('keydown', ['$event'])
Expand Down

0 comments on commit 12c1875

Please sign in to comment.