Skip to content

Commit

Permalink
Remove row healing for block deletion google#4832
Browse files Browse the repository at this point in the history
  • Loading branch information
jschanker authored Jun 4, 2021
1 parent 4e6a8f0 commit 32264a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/contextmenu_items.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,12 @@ Blockly.ContextMenuItems.registerDelete = function() {
},
callback: function(/** @type {!Blockly.ContextMenuRegistry.Scope} */ scope) {
Blockly.Events.setGroup(true);
scope.block.dispose(true, true);
if(scope.block.outputConnection) {
// Do not attempt to heal rows (https://github.com/google/blockly/issues/4832)
scope.block.dispose(false, true);
} else {
scope.block.dispose(true, true);
}
Blockly.Events.setGroup(false);
},
scopeType: Blockly.ContextMenuRegistry.ScopeType.BLOCK,
Expand Down

0 comments on commit 32264a5

Please sign in to comment.