diff --git a/Plk.Blazor.DragDrop/Dropzone.razor.cs b/Plk.Blazor.DragDrop/Dropzone.razor.cs index 07965cf..5f287bc 100644 --- a/Plk.Blazor.DragDrop/Dropzone.razor.cs +++ b/Plk.Blazor.DragDrop/Dropzone.razor.cs @@ -48,7 +48,7 @@ private void OnDropItemOnSpacing(int newIndex) } //Operation is finished - DragDropService.Reset(); + if (DragEnd == null) DragDropService.Reset(); OnItemDrop.InvokeAsync(activeItem); } @@ -389,7 +389,7 @@ private void OnDrop() } } - DragDropService.Reset(); + if (DragEnd == null) DragDropService.Reset(); StateHasChanged(); OnItemDrop.InvokeAsync(activeItem); }