ngx-uploader icon indicating copy to clipboard operation
ngx-uploader copied to clipboard

Drag and drop works. But it deletes the email from outlook

Open antajo opened this issue 5 years ago • 1 comments

This happens when we drop email from outlook to chrome. The default drop effect in chrome is taking it as "MOVE" instead of "Copy". We can fix this by taking the dragover event and changing drop effect. Something like this,

Angular component

@HostListener("document:dragover", ["$event"]) dragOver(ev: DragEvent): void {

if (ev && ev.dataTransfer && ev.dataTransfer.dropEffect != "copy") {

    ev.dataTransfer.dropEffect  = "copy";

}

}

can we include this feature inbuild to ourlibrary.

antajo avatar Nov 01 '19 19:11 antajo

A pull request has been added #523 this resolves the mentioned issue.

akram08 avatar Sep 02 '20 09:09 akram08