fix: Fix bug that could cause unintend block movements (#9818)

This commit is contained in:
Aaron Dodson
2026-05-07 08:52:51 -07:00
committed by GitHub
parent ea0479e6e2
commit 6eabe004d6
+2 -1
View File
@@ -1893,7 +1893,8 @@ export class BlockSvg
onNodeFocus(): void {
this.recomputeAriaAttributes();
this.select();
if (getFocusManager().getFocusedNode() !== this) {
const focusedNode = getFocusManager().getFocusedNode();
if (focusedNode && focusedNode !== this) {
renderManagement.finishQueuedRenders().then(() => {
this.workspace.scrollBoundsIntoView(
this.getBoundingRectangleWithoutChildren(),