fix: blocks not being returned to the correct layer if their drag is reverted with no parent (#7998)

* fix: blocks not being returned to the correct drag layer if their drag is reverted with no parent

* fix: delete test code
This commit is contained in:
Beka Westberg
2024-04-08 16:44:31 +00:00
committed by GitHub
parent 0cec8b1d29
commit 3e1e9b5ddc

View File

@@ -429,6 +429,9 @@ export class BlockDragStrategy implements IDragStrategy {
}
} else {
this.block.moveTo(this.startLoc!, ['drag']);
this.workspace
.getLayerManager()
?.moveOffDragLayer(this.block, layers.BLOCK);
// Blocks dragged directly from a flyout may need to be bumped into
// bounds.
bumpObjects.bumpIntoBounds(