DEV Community

Discussion on: Draggable table row with VueJS, Vuetify and SortableJS

Collapse
 
lambertbeekhuis profile image
Lambert Beekhuis

Very interesting post. One question though: how to handle a 'drop'? What is triggered when you actually 'drop' something. If I make the list in a computed property with a getter and setter, no change is detected as the :list option using splice is used. When using the draggable :value option, it is not working...

So, how to handle it 'after the drop'?

Collapse
 
lambertbeekhuis profile image
Lambert Beekhuis

A solution that works for me is adding the event-handler
@end="endDrag(props.items)"
in the element

Thanks, great!

Collapse
 
eugenman profile image
Eugen

For example:
@end="isDragging = false"