-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
1.13.0 bug in sortable, draggable: freezes page, "this.dragDirection" is undefined #1997
Comments
Thanks for the report. Can you provide a test case on JS Bin? Thanks! |
@danbernier ping |
I'll take a crack at it later today. |
@danbernier A gentle reminder about a test case. :) |
@danbernier Another friendly ping. :) |
Here is a demo showing the issue using nestedSortable and their default example: With jquery ui 1.12.1 it works fine, on 1.13.0 it throws the error. Sorry I don't have a simpler example for you, this is just one that we ran into, forcing us to rollback to 1.12.1 for now. |
@jwcooper From what I see, the jQuery UI Nested Sortable library overwrites some methods in
|
I don't think there's anything to be done on the jQuery UI side here. The bug is in the jQuery UI Nested Sortable library, the way it overwrote private parts of the Sortable widget has always been risky. The library doesn't look maintained, with the last commit being done 4 years ago. Your best bet may be forking the library and backporting jQuery UI 1.13.0 changes to it. For this specific issue, the most important is this bit of I'm going to close this since the issue is not in UI but feel free to continue discussing the issue here. |
@mgol Thanks for the tip on the issue and the fix, really appreciate it. It was indeed nested sortable that broke, and adding the dragDirection (and a few more things) worked with 1.13. |
This is fixed in ilikenwf/nestedSortable#138 (comment) |
Upgrading jquery-ui from 1.12.1 to 1.13.0 seems to have introduced an exception coming from sortable.
jQuery: 3.6.0
jquery-ui: 1.13.0 (not present in 1.12.1)
When you first drag a sortable component, the page freezes, and this error appears in the console:
It looks to come from this line in sortable.js, while evaluating
this.dragDirection.vertical
.The only recent commit to sortable.js is 70dae67, but the file history shows a few other commits that I think were added after 1.12.1, so that may be misleading.
This seems to have a lot in common with issue #1991, though I suspect they're distinct.
The text was updated successfully, but these errors were encountered: