Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mouse: Optimize the cancel locator, works around a bug where .add(eve…

…nt.target) in IE8 can take a long time when there are multiple siblings. Fixes #7118 - IE Bug Large ComboBox (Dialog)

(cherry picked from commit 09e88d6)
  • Loading branch information...
commit b04c6ece34a57840cce22e8680e9bb7a766994df 1 parent b196d1f
Jay Merrifield authored scottgonzalez committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  ui/jquery.ui.mouse.js
View
2  ui/jquery.ui.mouse.js
@@ -58,7 +58,7 @@ $.widget("ui.mouse", {
var self = this,
btnIsLeft = (event.which == 1),
- elIsCancel = (typeof this.options.cancel == "string" ? $(event.target).parents().add(event.target).filter(this.options.cancel).length : false);
+ elIsCancel = (typeof this.options.cancel == "string" ? $(event.target).closest(this.options.cancel).length : false);
if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) {
return true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.