ngx-uploader
ngx-uploader copied to clipboard
Drag and drop works. But it deletes the email from outlook
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.
A pull request has been added #523 this resolves the mentioned issue.