We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb44a86 commit 281f314Copy full SHA for 281f314
1 file changed
select2.js
@@ -162,7 +162,7 @@
162
});
163
}
164
165
- $(document).delegate("*", "mousemove", function (e) {
+ $(document).delegate("body", "mousemove", function (e) {
166
$.data(document, "select2-lastpos", {x: e.pageX, y: e.pageY});
167
168
@@ -494,7 +494,7 @@
494
* also takes care of clicks on label tags that point to the source element
495
*/
496
$(document).ready(function () {
497
- $(document).delegate("*", "mousedown touchend", function (e) {
+ $(document).delegate("body", "mousedown touchend", function (e) {
498
var target = $(e.target).closest("div.select2-container").get(0), attr;
499
if (target) {
500
$(document).find("div.select2-container-active").each(function () {
0 commit comments