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
SortableJS's normal behavior allows user to drag anywhere onto a Sortable list (including onto the draggable child elements) to add an element to it. However, with justify-content: flex-end; enabled on the parent Sortable element, you can no longer drag into the parent element. Dragging onto the child elements still works, but not onto the Sortable-enabled element itself.
Add the following CSS targeting a series of lists in the same group:
display: flex;
justify-content: flex-end;
Describe the bug
Draggable child elements cannot be dragged to the parent Sortable element itself. Note that other justify-content values such as start, center, and space-around work fine.
Expected behavior
Dragging to parent should add dragged item as a child - preferably on the same end of the child list as the item was dragged.
Hi @jjeff, it is not a CSS related issue, sortable JS is not accepting items to droped before first element.. raised a pr, hopefully it will be merged soon
Activity
jjeff commentedon Nov 19, 2020
I've posted a bug bounty on this one, in case anyone wants some incentive to fix or help with a suitable work-around.
https://www.bountysource.com/issues/93646441-flex-end-breaks-dragging-to-parent-element
ChaituVR commentedon Nov 19, 2020
Hi @jjeff, it is not a CSS related issue, sortable JS is not accepting items to droped before first element.. raised a pr, hopefully it will be merged soon
https://codepen.io/ChaituVR/pen/wvWbMXB?editors=0111
jjeff commentedon Nov 19, 2020
Great! Thank you so much!
#1942: Check if ghost is first
owen-m1 commentedon May 2, 2021
Fixed in commit 77e0481