From e5ba06fd5a9a0816d6816038f4f112a9da1cc02f Mon Sep 17 00:00:00 2001 From: kreuzerk Date: Sat, 1 Jun 2019 13:41:57 +0200 Subject: [PATCH] fix(drop): drop on dragend instead of drop --- projects/ng-sortgrid/src/lib/ngsg-item.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/ng-sortgrid/src/lib/ngsg-item.directive.ts b/projects/ng-sortgrid/src/lib/ngsg-item.directive.ts index 135d254..22b4da6 100644 --- a/projects/ng-sortgrid/src/lib/ngsg-item.directive.ts +++ b/projects/ng-sortgrid/src/lib/ngsg-item.directive.ts @@ -95,7 +95,7 @@ export class NgsgItemDirective implements OnInit, OnChanges, AfterViewInit, OnDe return false; } - @HostListener('drop', ['$event']) + @HostListener('dragend') drop(): void { if (!this.ngsgStore.hasSelectedItems(this.ngSortGridGroup)) { return;