mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user