bind abbr handler before mousedown. fixes #386
This commit is contained in:
parent
ab7ab5b3f7
commit
908c3583d7
18
select2.js
18
select2.js
@ -1497,6 +1497,15 @@
|
|||||||
window.setTimeout(this.bind(function() { this.selection.attr("tabIndex", this.opts.element.attr("tabIndex")); }), 10);
|
window.setTimeout(this.bind(function() { this.selection.attr("tabIndex", this.opts.element.attr("tabIndex")); }), 10);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
selection.delegate("abbr", "mousedown", this.bind(function (e) {
|
||||||
|
if (!this.enabled) return;
|
||||||
|
this.clear();
|
||||||
|
killEventImmediately(e);
|
||||||
|
this.close();
|
||||||
|
this.triggerChange();
|
||||||
|
this.selection.focus();
|
||||||
|
}));
|
||||||
|
|
||||||
selection.bind("mousedown", this.bind(function (e) {
|
selection.bind("mousedown", this.bind(function (e) {
|
||||||
clickingInside = true;
|
clickingInside = true;
|
||||||
|
|
||||||
@ -1580,15 +1589,6 @@
|
|||||||
killEvent(e);
|
killEvent(e);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
selection.delegate("abbr", "mousedown", this.bind(function (e) {
|
|
||||||
if (!this.enabled) return;
|
|
||||||
this.clear();
|
|
||||||
killEventImmediately(e);
|
|
||||||
this.close();
|
|
||||||
this.triggerChange();
|
|
||||||
this.selection.focus();
|
|
||||||
}));
|
|
||||||
|
|
||||||
this.setPlaceholder();
|
this.setPlaceholder();
|
||||||
|
|
||||||
this.search.bind("focus", this.bind(function() {
|
this.search.bind("focus", this.bind(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user