mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
Invoke a digest cycle after the DOM changes, so that the next node is correctly focused on after a top-level block deletion.
This commit is contained in:
@@ -122,7 +122,10 @@ blocklyApp.WorkspaceTreeComponent = ng.core
|
||||
|
||||
this.treeService.clearActiveDesc(this.tree.id);
|
||||
deleteBlockFunc();
|
||||
nextNodeToFocusOn.focus();
|
||||
// Invoke a digest cycle, so that the DOM settles.
|
||||
setTimeout(function() {
|
||||
nextNodeToFocusOn.focus();
|
||||
});
|
||||
} else {
|
||||
var blockRootNode = document.getElementById(this.idMap['blockRoot']);
|
||||
var nextActiveDesc =
|
||||
|
||||
Reference in New Issue
Block a user