Skip to content

Commit

Permalink
fix: apply custom style on dragover (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
kukhariev committed Mar 28, 2023
1 parent 98878f4 commit 2804f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uploadx/lib/uploadx-drop.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class UploadxDropDirective {
@HostListener('dragover', ['$event'])
onDragOver(event: DragEvent): void {
this._stopEvents(event);
if (event.dataTransfer && event.dataTransfer.files.item(0)) {
if (event.dataTransfer?.items[0].kind === 'file') {
event.dataTransfer.dropEffect = 'copy';
this.active = true;
}
Expand Down

0 comments on commit 2804f1b

Please sign in to comment.