Do not drag checked elements.
This commit is contained in:
parent
4cb7fa3a43
commit
8890d59fa4
@ -27,11 +27,11 @@
|
||||
|
||||
<draggable
|
||||
v-model="searchResults"
|
||||
group="people"
|
||||
group="listItems"
|
||||
@change="onChange"
|
||||
item-key="id" v-if="searchQ.length <= 0">
|
||||
<template #item="{element}">
|
||||
<ListItem v-bind:item="element" v-bind:can-move="true" v-on:updateItem="updateItem"></ListItem>
|
||||
<ListItem v-bind:item="element" v-bind:can-move="!element.checked" v-on:updateItem="updateItem"></ListItem>
|
||||
</template>
|
||||
</draggable>
|
||||
<div v-if="searchQ.length > 0">
|
||||
|
Loading…
Reference in New Issue
Block a user