Open nopeless opened 1 year ago
emit('onMove') does not have the desirable effect
emit('onMove')
In SortableJs, you are able to cancel a move by returning a value from onMove() call. However, because of the way the code is implemented right now, this functionality is completely disabled.
onMove()
https://github.com/MaxLeiter/sortablejs-vue3/blob/201bff662acf2d09e82e99057c6524fc1e8930d2/src/components/Sortable.vue#L91-L116
Related issue https://github.com/vuejs/core/issues/8865
The reason is because emit() does not return the value from the handler.
emit()
Here are some proposals
SortableOption
I am willing to submit a pr
emit('onMove')
does not have the desirable effectIn SortableJs, you are able to cancel a move by returning a value from
onMove()
call. However, because of the way the code is implemented right now, this functionality is completely disabled.https://github.com/MaxLeiter/sortablejs-vue3/blob/201bff662acf2d09e82e99057c6524fc1e8930d2/src/components/Sortable.vue#L91-L116
Related issue https://github.com/vuejs/core/issues/8865
The reason is because
emit()
does not return the value from the handler.Here are some proposals
SortableOption
instead of always overwriting them