We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9ecce5a + 071d6c7 commit cb7f1daCopy full SHA for cb7f1da
1 file changed
select2.js
@@ -352,7 +352,8 @@
352
this.id=opts.id;
353
354
// destroy if called on an existing component
355
- if (opts.element.data("select2") !== undefined) {
+ if (opts.element.data("select2") !== undefined &&
356
+ opts.element.data("select2") !== null) {
357
this.destroy();
358
}
359
@@ -544,6 +545,7 @@
544
545
546
this.updateResults(true);
547
this.dropdown.show();
548
+ this.ensureHighlightVisible();
549
this.focusSearch();
550
},
551
@@ -1121,6 +1123,7 @@
1121
1123
killEvent(e);
1122
1124
return;
1125
case KEY.ENTER:
1126
+ case KEY.TAB:
1127
this.selectHighlighted();
1128
1129
0 commit comments