vue.draggable.next icon indicating copy to clipboard operation
vue.draggable.next copied to clipboard

Add newValue to @change event

Open visualjerk opened this issue 3 years ago • 0 comments

First of all: Thanks for this great library!

Feature Request

It would be great to have an additional property added to the @change event, which contains the new value of the list.

This is helpful in cases where you need to handle changes in a store or via an API and need some calculations in relation to the surrounding items of the moved item.

Workaround

Use the @update:model-value to store the new list in a ref temporarily and use that ref in calculations triggered by @change.

visualjerk avatar Aug 17 '22 07:08 visualjerk