Alfred-Skyblue / vue-draggable-plus

Universal Drag-and-Drop Component Supporting both Vue 3 and Vue 2
https://vue-draggable-plus.pages.dev/en/
MIT License
2.71k stars 106 forks source link

Is there any way to Lock element on the same place? (disable sort) #129

Closed TheKucel closed 2 months ago

TheKucel commented 2 months ago

I need to disable sort for specific element, but not for all list In SortableJS/Vue.Draggable we have :move props, but here i can't see any of these

nfunwigabga commented 1 week ago

Did you find a way to do this?

nfunwigabga commented 1 week ago

Got it.

onMove(e){
        if (e.related.classList.contains('non-draggable')) return false;
    }