Fix moving cursor when block mutates (#3535)

* Fix moving cursor when block mutates
This commit is contained in:
alschmiedt
2020-01-02 15:12:06 -08:00
committed by GitHub
parent 06c714d13b
commit 4ce67bb108
5 changed files with 13 additions and 20 deletions

View File

@@ -323,11 +323,6 @@ Blockly.Block.prototype.dispose = function(healStack) {
this.workspace.removeChangeListener(this.onchangeWrapper_);
}
if (this.workspace.keyboardAccessibilityMode) {
// No-op if this is called from the block_svg class.
Blockly.navigation.moveCursorOnBlockDelete(this);
}
this.unplug(healStack);
if (Blockly.Events.isEnabled()) {
Blockly.Events.fire(new Blockly.Events.BlockDelete(this));