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 3e98e73 commit c5799b5Copy full SHA for c5799b5
ui/jquery.ui.mouse.js
@@ -58,7 +58,9 @@ $.widget("ui.mouse", {
58
59
var self = this,
60
btnIsLeft = (event.which == 1),
61
- 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
62
+ // disabled inputs (#7620)
63
+ elIsCancel = (typeof this.options.cancel == "string" && event.target.nodeName ? $(event.target).closest(this.options.cancel).length : false);
64
if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) {
65
return true;
66
}
0 commit comments