diff --git a/core/dragging/block_drag_strategy.ts b/core/dragging/block_drag_strategy.ts index c3be97da68..0e43a417dc 100644 --- a/core/dragging/block_drag_strategy.ts +++ b/core/dragging/block_drag_strategy.ts @@ -358,7 +358,7 @@ export class BlockDragStrategy implements IDragStrategy { * Cleans up any state at the end of the drag. Applies any pending * connections. */ - endDrag(e?: PointerEvent): void { + async endDrag(e?: PointerEvent): Promise { if (this.block.isShadow()) { this.block.getParent()?.endDrag(e); return; @@ -385,7 +385,7 @@ export class BlockDragStrategy implements IDragStrategy { // Applying connections also rerenders the relevant blocks. this.applyConnections(this.connectionCandidate); } else { - this.block.queueRender(); + await this.block.queueRender(); } this.block.snapToGrid();