Skip to content

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

@antajo

Description

@antajo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions