Hi Gaurav,
Thank you for contacting Syncfusion support.
WE have checked your query related to Syncfusion Drag and Drop library and we have created simple application where we have set true for Clone property which will prevent removing the element from the drag source. Also, we can get the dragged element in the drop event argument.
Code Snippet:
public componentDidMount(): void {
let draggable:Draggable = new Draggable(document.getElementById('draggable'),{clone: true});
let droppable: Droppable = new Droppable(document.getElementById('droppable'), {
drop: (e: DropEventArgs) => {
e.droppedElement.querySelector('#drag').textContent = 'Dropped';
}
});
}
|
Reference Image:
Please get back to us if you need any further assistance on Syncfusion components.
Regards,
Jesus Arockia Sankaran S