Closed driskull closed 8 months ago
Thank you, PR has been merged
Thank you @owen-m1 🍻
Thanks, @driskull and @owen-m1! When is the next SortableJS release planned?
@owen-m1 any chance we can get a new release with this fix?
Thank you @driskull it has been released in 1.15.3
Describe the bug
forceFallback: true
, and thehandle
or list content is a web component with an open shadowRoot items cannot be dragged.target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
, its returning elements within ourhandle
custom element or content custom element instead of a child of the Sortable instance.forceFallback: true
or when used by a mobile device which seems to always go into fallback mode.To Reproduce Steps to reproduce the behavior:
Expected behavior
I would expect sort swapping to work when a handle or content within a list is a custom element.
Information
sortablejs = ^1.15.1 @types/sortablejs = ^1.15.1
Additional context I have a PR open to fix this but need verification that it is the best approach to fixing the issue.
Reproduction codesandbox: https://codepen.io/driskull/pen/OJqrzVL?editors=1010 and https://codepen.io/driskull/pen/xxBmpra?editors=0110
Pull Request Fix
https://github.com/SortableJS/Sortable/pull/2347