Browse Source

fix(client): resolve errors

pull/6961/head
KenTandrian 3 months ago
parent
commit
dd93d71dca
  1. 9
      apps/client/src/app/directives/file-drop/file-drop.directive.ts

9
apps/client/src/app/directives/file-drop/file-drop.directive.ts

@ -20,9 +20,10 @@ export class GfFileDropDirective {
event.preventDefault();
event.stopPropagation();
// Prevent the browser's default behavior for handling the file drop
event.dataTransfer.dropEffect = 'copy';
this.filesDropped.emit(event.dataTransfer.files);
if (event.dataTransfer) {
// Prevent the browser's default behavior for handling the file drop
event.dataTransfer.dropEffect = 'copy';
this.filesDropped.emit(event.dataTransfer.files);
}
}
}

Loading…
Cancel
Save