private async Task OnDroppedCanceled() { _dragOperationIsInProgress = false; await OnDragEnded.InvokeAsync(Item); StateHasChanged(); }
private async Task DragEnded(DragEventArgs e) { if (_dragOperationIsInProgress == true) { _dragOperationIsInProgress = false; await Container?.CancelTransaction(); } else { await OnDragEnded.InvokeAsync(Item); } }