-
Notifications
You must be signed in to change notification settings - Fork 180
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
Sorting does not work for StackedInline if widget of the field has <table> #384
Comments
Could you please dump a HTML code snippet containing at least one complete stacked inline form. Then I will check what can be done by adopting the selectors. |
Here is the snippet:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/jrief/django-admin-sortable2/blob/2.1.10/client/admin-sortable2.ts#L214
This line selects the
<thead>
of the field's widget<table>
and attaches the event listeners to it inif (tBody) {...}
This causes the UI to not handle the drag events correctly:
As a workaround, I've copy-pasted the compiled version of
adminsortable2.js
tomyproject/static/adminsortable2/js/adminsortable2.js
and modified theInlineSortable
's constructor as follows:I am using:
The text was updated successfully, but these errors were encountered: