We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e827a0e commit 7f812f8Copy full SHA for 7f812f8
ui/jquery.ui.mouse.js
@@ -59,7 +59,9 @@ $.widget("ui.mouse", {
59
60
var self = this,
61
btnIsLeft = (event.which == 1),
62
- elIsCancel = (typeof this.options.cancel == "string" ? $(event.target).closest(this.options.cancel).length : false);
+ // event.target.nodeName works around a bug in IE 8 with
63
+ // disabled inputs (#7620)
64
+ elIsCancel = (typeof this.options.cancel == "string" && event.target.nodeName ? $(event.target).closest(this.options.cancel).length : false);
65
if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) {
66
return true;
67
}
0 commit comments