-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Flex-end breaks dragging to parent element #1942
Comments
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 |
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 |
Great! Thank you so much! |
Fixed in commit 77e0481 |
Reproduction
https://codepen.io/jjeff/pen/PozoJVQ
Scenario
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.See attached GIF and code at https://codepen.io/jjeff/pen/PozoJVQ. I can reproduce at Codesandbox if needed.
Steps to Reproduce
Summary of steps if applicable.
Describe the bug
Draggable child elements cannot be dragged to the parent Sortable element itself. Note that other
justify-content
values such asstart
,center
, andspace-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.
Version
sortablejs
^1.10.2-?
@types/sortablejs
^x.x.x-?
|| N/AAdditional Context
The text was updated successfully, but these errors were encountered: