Explorar o código

fix bug where space was ignored in single selects. fixes #233

Igor Vaynberg %!s(int64=13) %!d(string=hai) anos
pai
achega
1771c3ba61
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -1215,7 +1215,7 @@
             this.search.bind("keydown", this.bind(function (e) {
                 if (!this.enabled) return;
 
-                if (e.which === KEY.PAGE_UP || e.which === KEY.PAGE_DOWN || e.which === KEY.SPACE) {
+                if (e.which === KEY.PAGE_UP || e.which === KEY.PAGE_DOWN) {
                     // prevent the page from scrolling
                     killEvent(e);
                     return;