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

NgxDropzoneChangeEvent DropEffect

Open wratho opened this issue 5 years ago • 1 comments

There appears to be an issue related Outlook and Drop Events that if the DropEffect is 'move' then it will delete the email where if it is set to 'copy' it works as expected. This also appears to be a chromium issue.

I was wondering if there was a way to change the DropEffect of the NgxDropzoneChangeEvent during the (change) binding.

wratho avatar Jul 10 '20 16:07 wratho

_onDragOver(event) {
        if (this.disabled) {
            return;
        }
        event.dataTransfer.dropEffect = 'copy';
        this.preventDefault(event);
        this._isHovered = true;
    }

when adding this to the dragOver event it fixes the problem

additionally adding my own (dropover) function binding on the ngx-dropzone element and setting it to copy has worked.

wratho avatar Jul 10 '20 18:07 wratho