Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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)
- Loading branch information
This change is causing an issue with jquery.ui.resizable
If the resizable container has a disabled input with text in it, clicking on the text is cancelled, which results in an error on IE8.
The issue seems to come form$(event.target).parents().length being zero, while $ (event.target.closest(this.options.cancel) returning an error on IE8.
I suggest reverting it to the original or changing this to:$(event.target).parents().length && $ (event.target).closest(this.options.cancel).length : false);
elIsCancel = (typeof this.options.cancel == "string" ?