Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
antajo opened this issue Nov 1, 2019 · 1 comment
Open

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

antajo opened this issue Nov 1, 2019 · 1 comment

Comments

@antajo
Copy link

antajo commented Nov 1, 2019

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.

@akram08
Copy link

akram08 commented Sep 2, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants