Explorar o código

use click instead of mousedown so we dont break drag and drop support

Igor Vaynberg %!s(int64=12) %!d(string=hai) anos
pai
achega
42d3ef4405
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -2399,7 +2399,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("mousedown", ".select2-search-choice", function (e) {
+            this.selection.on("click", ".select2-search-choice", function (e) {
                 //killEvent(e);
                 _this.search[0].focus();
                 _this.selectChoice($(this));