I am facing an issue with implementing drag-and-drop functionality using v-chip
elements and a form
. My goal is to enable users to drag any chip and drop it into the form so that the input field in the form captures the value of the dropped chip.
Here is a simplified version of what I have attempted:
<v-chip :draggable="true" @dragstart="draggedData='First Chip'">First Chip</v-chip>
<v-text-field label="Droppable" v-model="input" @drop="input=draggedData"></v-text-field>
Although the dragging functionality works properly by storing the value in draggedData
, the dropping action does not correctly pass the value to the input field as expected.
Can anyone suggest a solution for this issue? Dragging is functional, but the dropping process needs attention.