vue-upload-component icon indicating copy to clipboard operation
vue-upload-component copied to clipboard

Why is dropActive true outside specified drop element?

Open jacobg opened this issue 4 years ago • 1 comments

In the following code: https://github.com/lian-yue/vue-upload-component/blob/b5abe3054241efd80bc5ce2dd536033d522f64ce/src/FileUpload.vue#L1522-L1528 Why is the component listening for dragenter on the entire document? If the application wants to use the dropActive property to animate the component, then it seems it should only be setting dropActive = true when it's inside the drop element.

jacobg avatar Aug 25 '21 18:08 jacobg

I also don't understand. I hope there is a prop that can be set.

Linhongbin-1111 avatar Nov 26 '21 06:11 Linhongbin-1111