Skip to content
Browse files

enter should submit form like standard select

  • Loading branch information...
1 parent 2af3379 commit cd8301bbe66c84041ceb4c7e2c3a798ad3c83f5a @eeng committed May 7, 2013
Showing with 0 additions and 5 deletions.
  1. +0 −5 app/assets/javascripts/select2.js
View
5 app/assets/javascripts/select2.js
@@ -1669,11 +1669,6 @@ the specific language governing permissions and limitations under the Apache Lic
return;
}
- if (this.opts.openOnEnter === false && e.which === KEY.ENTER) {
- killEvent(e);
- return;
- }
-
if (e.which == KEY.DOWN || e.which == KEY.UP
|| (e.which == KEY.ENTER && this.opts.openOnEnter)) {
this.open();

0 comments on commit cd8301b

Please sign in to comment.
Something went wrong with that request. Please try again.