Skip to content

Commit 4645183

Browse files
committed
Merge pull request select2#2227 from fabdouglas/patch-6
Ignore focus and error on IE7 for disabled select2
2 parents d6d9f95 + dd6198a commit 4645183

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

select2.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2674,8 +2674,7 @@ the specific language governing permissions and limitations under the Apache Lic
26742674
this.selection = selection = this.container.find(selector);
26752675

26762676
var _this = this;
2677-
this.selection.on("click", ".select2-search-choice:not(.select2-locked)", function (e) {
2678-
//killEvent(e);
2677+
this.selection.on("click", ".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)", function (e) {
26792678
_this.search[0].focus();
26802679
_this.selectChoice($(this));
26812680
});

0 commit comments

Comments
 (0)