Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behaviour prop is not reactive. #82

Open
z0lo13 opened this issue May 1, 2023 · 0 comments
Open

Behaviour prop is not reactive. #82

z0lo13 opened this issue May 1, 2023 · 0 comments

Comments

@z0lo13
Copy link

z0lo13 commented May 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant