Skip to content
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

Fix dragging and dropping in the presence of jQuery 3.0 #2005

Merged
merged 4 commits into from Apr 11, 2018

Conversation

alandipert
Copy link
Contributor

Drag and drop relied on jQuery's .size() method, which was deprecated in jQuery 1.8 and removed in 3.0.

The method works in Shiny's version of jQuery, 1.12.4. However, the feature breaks when htmlwidgets introduce jQuery >= 3.0, as happened in #1962.

This fix uses .length instead of .size and should make DnD more resilient in the presence of newer versions of jQuery.

@alandipert
Copy link
Contributor Author

@jcheng5 I updated NEWS and called this a bug fix, but later realized it might be considered an improvement/enhancement. What do you think?

@jcheng5
Copy link
Member

jcheng5 commented Apr 10, 2018

I don't have a preference

@bborgesr
Copy link
Contributor

Closes #1962

@alandipert
Copy link
Contributor Author

@jcheng5 approved and @shalutiwari completed QA, so merging

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

Successfully merging this pull request may close these issues.

None yet

3 participants