Replies: 1 comment
-
Due to the internal use of JSON for deep copying, it will cause the loss of Proxy. vue-draggable-plus/src/useDraggable.ts Lines 30 to 33 in ef2cc8f You can pass a clone function that returns the proxy object: <script setup>
import { reactive } from 'vue'
function clone(el) {
const val = JSON.parse(JSON.stringify(el))
return reactive(val)
}
</script>
<template>
<VueDraggable :clone="clone">
<!-- code -->
</VueDraggable>
</template>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
After dragging an item from one nested list to another, is it correct that the item becomes a non-proxied object?
In this instance I moved
card.1
from another board, and it changes to a non-proxied object.The code for the nested boards is
I ask because of this bug in inertiajs inertiajs/inertia#775 and wondered if the non-proxied object was breaking it.
Beta Was this translation helpful? Give feedback.
All reactions