Skip to content

Commit

Permalink
fix(multi select): duplicates, select by Enter in multiple mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aslubsky committed Mar 2, 2016
1 parent ef73f56 commit 6fd0067
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/select/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,10 @@ export class Select {

// enter
if (!isUpMode && e.keyCode === 13) {
this.selectActiveMatch();
if (this.active.indexOf(this.activeOption) == -1) {
this.selectActiveMatch();
this.behavior.next();
}
e.preventDefault();
return;
}
Expand Down

0 comments on commit 6fd0067

Please sign in to comment.