Skip to content

Commit 1771c3b

Browse files
committed
fix bug where space was ignored in single selects. fixes select2#233
1 parent 1fc0982 commit 1771c3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@
12151215
this.search.bind("keydown", this.bind(function (e) {
12161216
if (!this.enabled) return;
12171217

1218-
if (e.which === KEY.PAGE_UP || e.which === KEY.PAGE_DOWN || e.which === KEY.SPACE) {
1218+
if (e.which === KEY.PAGE_UP || e.which === KEY.PAGE_DOWN) {
12191219
// prevent the page from scrolling
12201220
killEvent(e);
12211221
return;

0 commit comments

Comments
 (0)