akserg / ng2-dnd

Angular 2 Drag-and-Drop without dependencies
MIT License
838 stars 251 forks source link

Add allowFileDrop functionality to dnd-sortable-container #271

Open DzmVasileusky opened 6 years ago

DzmVasileusky commented 6 years ago
Chealer commented 3 years ago

I do not consider this as a feature request, but as a bug. We have a similar issue reported against our application, also based on both ng2-dnd (2.2.1) and ng2-file-upload (1.3.0).

Which version are you experiencing this with? In our case, file drops remain possible, but some are impossible. Specifically, files from Chromium's Downloads (recent downloads) cannot be dragged to an ng2FileDrop inside a dnd-sortable-container. Files from other sources (for example, from the desktop) can be. Even files from Firefox's Downloads can be dragged to a Chrome tab using dnd-sortable-container. This affects presumably all browsers based on Blink, including Google Chrome 92.0.4515.131 and Microsoft Edge 92.0.902.67. The problem is not just the drop event's handling. Currently, when hovering the container, the cursor becomes a black standard prohibited sign (in not-allowed's style). Our records suggests this wasn't the case before (perhaps with prior Blink versions).