Skip to content

Behaviour prop is not reactive. #82

@z0lo13

Description

@z0lo13
<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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions