diff --git a/accessible/workspace-tree.component.js b/accessible/workspace-tree.component.js index d36bde6e2..50412a830 100644 --- a/accessible/workspace-tree.component.js +++ b/accessible/workspace-tree.component.js @@ -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 =