As mentioned on title, the onClone event fires even if the element is just moved, not cloned.
Besides that
onClone: function (ev) { console.log(ev.clone) }
above code returns a DOM element that you can't even find on the document when you click the result on the console. but it's supposed to return nothing (when the pull is not set to "clone")
onClone: function (ev) { console.log(ev.clone) }
if we check it with pull: 'clone', it returns the original element. but it's supposed to return the cloned element
console.log(ev.item ) should return the whole original element (with pull: 'clone'). but it's returning only the actual element without the nested childs
As mentioned on title, the onClone event fires even if the element is just moved, not cloned. Besides that
onClone: function (ev) { console.log(ev.clone) }
above code returns a DOM element that you can't even find on the document when you click the result on the console. but it's supposed to return nothing (when the pull is not set to "clone")onClone: function (ev) { console.log(ev.clone) }
if we check it withpull: 'clone'
, it returns the original element. but it's supposed to return the cloned elementconsole.log(ev.item )
should return the whole original element (withpull: 'clone'
). but it's returning only the actual element without the nested childshere's a preview of the issue https://codesandbox.io/s/hopeful-thompson-9t0q18?file=/src/index.js:1147-1178