1
0
mirror of synced 2025-02-09 16:49:24 +03:00

Merge pull request #2227 from fabdouglas/patch-6

Ignore focus and error on IE7 for disabled select2
This commit is contained in:
Kevin Brown 2014-08-17 16:49:25 -04:00
commit 4645183054

View File

@ -2674,8 +2674,7 @@ the specific language governing permissions and limitations under the Apache Lic
this.selection = selection = this.container.find(selector);
var _this = this;
this.selection.on("click", ".select2-search-choice:not(.select2-locked)", function (e) {
//killEvent(e);
this.selection.on("click", ".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)", function (e) {
_this.search[0].focus();
_this.selectChoice($(this));
});