Jexordexan / vue-slicksort

A set of vue mixins to turn any list into an animated, touch-friendly, sortable list ✌️
http://vue-slicksort.netlify.app
Other
1.48k stars 157 forks source link

reorder without rerendering #69

Open NoMaillard opened 5 years ago

NoMaillard commented 5 years ago

when you drop an element into a list, the element's mounted lifecyle callback is called again, is it possible to prevent this behaviour ?

Jexordexan commented 5 years ago

@NoMaillard is it possible you are having similar behavior as #72 ?

NoMaillard commented 5 years ago

@Jexordexan i'm not sure, here's a GIF of what's happening : 2018-12-11 09 45 01

After going through the code it seems le the node is cloned so this behaviour is expected, do you think it would be possible to use the original node in the reordering process ?

cmcleese commented 4 years ago

Have a look at my answer here: https://github.com/Jexordexan/vue-slicksort/issues/72#issuecomment-694819819

You may simple need to change how you're using the :key and :index on your sortable list compoent. (if you are)