You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My sortable list is a table (TABLE element,) and I would like for the draggable elements in that table to be the individual tables cells (TD elements,) not the entire rows (TR elements.) Some of the cells in my table contain buttons or checkboxes, etc, and I would like for the spaces in the cells around those elements to NOT allow dragging.
The docs on the README page say this:
draggable: ".item", // Specifies which items inside the element should be draggable
It doesn't say whether it can be a selector or just a class.
This is a very simplified template for my Sortable list:
I then moved the identity-item-draggable class to the table rows (the TR elements) instead, and that DOES work.
So I would like to request that it be made to work for a selector that matches any descendant elements. But that would probably be very difficult...
The text was updated successfully, but these errors were encountered:
WoofGrrrr
changed the title
Request: Make The "draggable" Property A Selector So That Descendant Elements Enable Draggging, Not Just Direct Child Elements
[Feature] Request: Make The "draggable" Property A Selector So That Descendant Elements Enable Draggging, Not Just Direct Child Elements
Mar 29, 2025
My sortable list is a table (TABLE element,) and I would like for the draggable elements in that table to be the individual tables cells (TD elements,) not the entire rows (TR elements.) Some of the cells in my table contain buttons or checkboxes, etc, and I would like for the spaces in the cells around those elements to NOT allow dragging.
The docs on the README page say this:
It doesn't say whether it can be a selector or just a class.
This is a very simplified template for my Sortable list:
I tried using a selector like this:
It does not work.
I also tried simply this:
It also does not work.
I then moved the identity-item-draggable class to the table rows (the TR elements) instead, and that DOES work.
So I would like to request that it be made to work for a selector that matches any descendant elements. But that would probably be very difficult...
The text was updated successfully, but these errors were encountered: