From 957f7010357c0cacd75459f89cddf3eebfe38d65 Mon Sep 17 00:00:00 2001 From: Piotr Bogun Date: Fri, 2 Jan 2026 15:19:04 -0600 Subject: [PATCH] Add focus class to new selected label after removing focus class from previously selected label --- .../@node-red/editor-client/src/js/ui/common/treeList.js | 4 ++++ 1 file changed, 4 insertions(+) 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..957e0f663 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 @@ -879,6 +879,10 @@ } that._topList.find(".focus").removeClass("focus"); + + if (item.treeList.label) { + item.treeList.label.addClass("focus"); + } if (triggerEvent !== false) { this._trigger("select",null,item)