From cdc83afdee5de0fde64746b40fcd2f4c99ebc13a Mon Sep 17 00:00:00 2001 From: Piotr Bogun Date: Mon, 5 Jan 2026 22:54:47 -0600 Subject: [PATCH] Call reveal on a treelist target when it gets focused --- .../@node-red/editor-client/src/js/ui/common/treeList.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/treeList.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/treeList.js index 85c6f0992..e06fa1df4 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/treeList.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/treeList.js @@ -188,7 +188,10 @@ } else { that._topList.find(".focus").removeClass("focus") } - target.treeList.label.addClass('focus') + if (target.treeList.label) { + target.treeList.label.addClass('focus') + } + that.reveal(target); } }); this._data = [];