[Vuejs]-Vue draggable does not update text input fields when switched, but does update it in the array

0👍

For anyone interested, I ended up fixing this. you have to pass down the contents of the array as props when you are working with dynamic components in your list that also pass up data.

So I change it from:
<component :is="section.type + 'Element'" @return="addData($event, index)" />

to:
<component :is="section.type + 'Element'" :data="userData.packetSections[index]" @return="addData($event, index)" />

and it worked fine.

Leave a comment