Skip to content

Commit

Permalink
removed incorrect behavior to do ENTER behavior on TAB. TAB should si…
Browse files Browse the repository at this point in the history
…mply skip to next field as expected. Solves valor-software#686 and valor-software#490
  • Loading branch information
rbaarsma committed Jul 5, 2016
1 parent 84c07f8 commit d4c2ae7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions components/typeahead/typeahead.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,10 @@ export class TypeaheadDirective implements OnInit {
}

// if shift + tab, close items list
if (e.shiftKey && e.keyCode === 9) {
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,
Expand Down

0 comments on commit d4c2ae7

Please sign in to comment.