Skip to content

Fix issue with jquery.ui.resizable on IE8 containing disabled input text field #422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

zawaideh
Copy link

@zawaideh zawaideh commented Aug 4, 2011

This change fixes an issue with jquery.ui.resizable

If the resizable container has a disabled input with text in it, clicking on the text should be cancelled, but it instead results in an error on IE8.

The issue seems to come from $(event.target.closest(this.options.cancel) returning an error on IE8. $(event.target).parents().length is being zero in this case which allows short-circuiting the call to closest

If the resizable container has a disabled input with text in it, clicking on the text should be cancelled, but it instead results in an error on IE8.

The issue seems to come from $(event.target.closest(this.options.cancel) returning an error on IE8. $(event.target).parents().length is being zero in this case which allows short-circuiting the call to closest
@scottgonzalez
Copy link
Member

Thanks, but we fixed this by checking for nodeName in 7f812f8.

@zawaideh
Copy link
Author

zawaideh commented Aug 9, 2011

Great! Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants