Update file-drop.component.ts

This commit is contained in:
shamoon 2023-09-26 23:55:24 -07:00
parent 86cba60755
commit f6a7824014

View File

@ -76,9 +76,9 @@ export class FileDropComponent {
if (!this.dragDropEnabled) return if (!this.dragDropEnabled) return
event.preventDefault() event.preventDefault()
event.stopImmediatePropagation() event.stopImmediatePropagation()
this.onDragLeave(event, true)
// pass event onto ngx-file-drop to handle files // pass event onto ngx-file-drop to handle files
this.ngxFileDrop.dropFiles(event) this.ngxFileDrop.dropFiles(event)
this.onDragLeave(event, true)
} }
public dropped(files: NgxFileDropEntry[]) { public dropped(files: NgxFileDropEntry[]) {