Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
fix(select): do not break on pressing enter (fixes #712)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Apr 27, 2014
1 parent c9560be commit f8164ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ angular.module('mgcrea.ngStrap.select', ['mgcrea.ngStrap.tooltip', 'mgcrea.ngStr
evt.stopPropagation();

// Select with enter
if(evt.keyCode === 13 || evt.keyCode === 9) {
if(!options.multiple && (evt.keyCode === 13 || evt.keyCode === 9)) {
return $select.select(scope.$activeIndex);
}

Expand Down

0 comments on commit f8164ba

Please sign in to comment.