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.15k stars 3.68k forks source link

allow disabling DOM changes for bindings on virtual dom #1931

Open waynevanson opened 3 years ago

waynevanson commented 3 years ago

Summary

Creating framework bindings requires extensive knowledge of the Sortable API, DOM and the particular framework because once the framework updates state, all the DOM manipulation Sortable does gets reversed and broken by the framework.

By allowing a disability function, developers can create light wrappers instead of having to reverse SortableJS actions and thus not wasting precious rendering resources.

Additional Context

This applies to Vue, React and Angular as far as I know.

AoDev commented 3 years ago

I've seen people asking for this since 2015. Is there anything we could do to speed this up?

Sortable seems to work great on mobiles, unlike other similar libs so I wish I could simply use it while managing the underlying model myself.