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 #363)

closes #395 closes #389 closes #363
  • Loading branch information
fkowal authored and valorkin committed Apr 12, 2016
1 parent 108d63b commit 1a719d0
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 1a719d0

Please sign in to comment.