diff --git a/desktop/plugins/public/ui-debugger/components/Tree.tsx b/desktop/plugins/public/ui-debugger/components/Tree.tsx index 396344a26..944547f66 100644 --- a/desktop/plugins/public/ui-debugger/components/Tree.tsx +++ b/desktop/plugins/public/ui-debugger/components/Tree.tsx @@ -113,7 +113,7 @@ export function Tree2({nodes, rootId}: {nodes: Map; rootId: Id}) { // otherwise we will keep scrolling back to the selected node overriding the users manual scroll offset. // We only should scroll when selection changes // eslint-disable-next-line react-hooks/exhaustive-deps - }, [selectedNode]); + }, [selectedNode, focusedNode]); return (