vue-dndrop icon indicating copy to clipboard operation
vue-dndrop copied to clipboard

Behaviour prop is not reactive.

Open z0lo13 opened this issue 2 years ago • 0 comments

<Container class="scroll-content dragContainer" group-name="1" :behaviour="allowDropToAll ? 'move' : 'copy'" @drop="onDrop('remove', $event)" :get-child-payload="(index) => items[index]" @drag-start="handleDragStart" @drag-end="() => allowDropToAll = false">
  <Draggable v-for="(item, i) in items" :key="item.id" class="dragItem" ref="dragItems">
    <ItemCard :item="item" @change="(itemData) => handleItemChange(i, itemData)" :tags="tags" />
  </Draggable>
</Container>

I want to accept drop only if is allowed. I am not sure if i am missing anything here. Otherwise it must copy from it.

z0lo13 avatar May 01 '23 21:05 z0lo13