#2448·Sortable

[bug] Ignore templating elements (AlpineJS) (MultiDrag)

Author: csouza1995Created Aug 15, 2025Updated Feb 2, 2026

I want a help to contourn a usage problem! When I use AlpineJS x-for to create a list and try to drag multiple items, when I drop them, the objects are moved one slot above the drop location.

I think that is because have a template element inside my list and I need a way to ignore it or something else Image

Example: https://jsbin.com/wukamikoci/1/edit?html,js,output https://github.com/user-attachments/assets/7226cdbc-f206-47d7-9671-2f5a610fcf10