SortableJS / Sortable

Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
https://sortablejs.github.io/Sortable/
MIT License
29.77k stars 3.7k forks source link

node remove, blind bug #2388

Open ALTITUDE-DEV-FR opened 4 months ago

ALTITUDE-DEV-FR commented 4 months ago

Hello, How to remove a block from node and not affect the drag/drop system ? demo: https://builder.andromede-cms.com/ https://gitlab.com/altitude-dev/website-builder-js

(if you delete a block, with supp or - in menu context, after if you sort a block, is blind..)

deleteBlock(block) {
    block.remove(); // remove the block selected
    sortable.destroy(); // refresh my sortable ?
},

My function remove the block node and i need to not blind a cusor for drag and drop, is full bug :( Thanks for help