Skip to content

Commit

Permalink
Merge pull request #9 from kreuzerk/feature/fixDropOutsideGrid
Browse files Browse the repository at this point in the history
fix(drop): drop on dragend instead of drop
  • Loading branch information
nivekcode authored Jun 1, 2019
2 parents 46fcab2 + e5ba06f commit 4018cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ng-sortgrid/src/lib/ngsg-item.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4018cc3

Please sign in to comment.