Merge branch 'master' of git://github.com/ivaynberg/select2
This commit is contained in:
commit
cb7f1da4e6
@ -352,7 +352,8 @@
|
|||||||
this.id=opts.id;
|
this.id=opts.id;
|
||||||
|
|
||||||
// destroy if called on an existing component
|
// destroy if called on an existing component
|
||||||
if (opts.element.data("select2") !== undefined) {
|
if (opts.element.data("select2") !== undefined &&
|
||||||
|
opts.element.data("select2") !== null) {
|
||||||
this.destroy();
|
this.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -544,6 +545,7 @@
|
|||||||
|
|
||||||
this.updateResults(true);
|
this.updateResults(true);
|
||||||
this.dropdown.show();
|
this.dropdown.show();
|
||||||
|
this.ensureHighlightVisible();
|
||||||
this.focusSearch();
|
this.focusSearch();
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1121,6 +1123,7 @@
|
|||||||
killEvent(e);
|
killEvent(e);
|
||||||
return;
|
return;
|
||||||
case KEY.ENTER:
|
case KEY.ENTER:
|
||||||
|
case KEY.TAB:
|
||||||
this.selectHighlighted();
|
this.selectHighlighted();
|
||||||
killEvent(e);
|
killEvent(e);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user