diff --git a/components/typeahead/typeahead.directive.ts b/components/typeahead/typeahead.directive.ts index 4165bcad41..19d72cdb82 100644 --- a/components/typeahead/typeahead.directive.ts +++ b/components/typeahead/typeahead.directive.ts @@ -143,17 +143,11 @@ export class TypeaheadDirective implements OnInit { return; } - // if shift + tab, close items list - if (e.shiftKey && e.keyCode === 9) { + // if tab default browser behavior will select next input field, and therefore we should close the items list + if (e.keyCode === 9) { this.hide(); return; } - - // if tab select current item - if (!e.shiftKey && e.keyCode === 9) { - this.container.selectActiveMatch(); - return; - } } public constructor(cd:NgModel, viewContainerRef:ViewContainerRef, element:ElementRef,