From 02dea18dc9507841c71f9165c54dda4cc4972316 Mon Sep 17 00:00:00 2001 From: jdecuyper Date: Tue, 3 Sep 2013 17:20:35 -0500 Subject: [PATCH] Avoid locked options to be selected and deleted. --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 37abcec4..e2261e1f 100644 --- a/select2.js +++ b/select2.js @@ -2445,7 +2445,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", function (e) { + this.selection.on("click", ".select2-search-choice:not(.select2-locked)", function (e) { //killEvent(e); _this.search[0].focus(); _this.selectChoice($(this));