mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
drag and drop improvements (copy effect) (#6019)
* drag and drop fixes (copy effect) * fix tests * update tests * test fixes
This commit is contained in:
@@ -108,16 +108,18 @@ export class UploadDirective implements OnInit, OnDestroy {
|
||||
}
|
||||
}
|
||||
|
||||
onDragEnter() {
|
||||
onDragEnter(event: DragEvent) {
|
||||
if (this.isDropMode()) {
|
||||
event.dataTransfer.dropEffect = 'copy';
|
||||
this.element.classList.add(this.cssClassName);
|
||||
this.isDragging = true;
|
||||
}
|
||||
}
|
||||
|
||||
onDragOver(event: Event) {
|
||||
onDragOver(event: DragEvent) {
|
||||
event.preventDefault();
|
||||
if (this.isDropMode()) {
|
||||
event.dataTransfer.dropEffect = 'copy';
|
||||
this.element.classList.add(this.cssClassName);
|
||||
this.isDragging = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user