mirror of
https://github.com/google/blockly.git
synced 2026-01-29 11:40:14 +01:00
Don't delete connected child blocks.
This commit is contained in:
@@ -456,7 +456,7 @@ Blockly.BlockSvg.prototype.onMouseUp_ = function(e) {
|
||||
// Don't throw an object in the trash can if it just got connected.
|
||||
this_.workspace.trashcan.close();
|
||||
}
|
||||
} else if (Blockly.selected.isDeletable() &&
|
||||
} else if (!this_.getParent() && Blockly.selected.isDeletable() &&
|
||||
this_.workspace.isDeleteArea(e)) {
|
||||
var trashcan = this_.workspace.trashcan;
|
||||
if (trashcan) {
|
||||
|
||||
Reference in New Issue
Block a user