From b18fb321b6d6c27acd2a1762dd1854735f7e8796 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 26 Jun 2025 11:05:55 +0100 Subject: [PATCH] Do not update suggestion whilst typeSearch hiding --- .../@node-red/editor-client/src/js/ui/typeSearch.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/typeSearch.js b/packages/node_modules/@node-red/editor-client/src/js/ui/typeSearch.js index 56f4bf145..cf714cf20 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/typeSearch.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/typeSearch.js @@ -266,6 +266,11 @@ RED.typeSearch = (function() { if (nodeItem === activeSuggestion) { return } + if (!visible && nodeItem) { + // Do not update suggestion if the dialog is not visible + // - for example, whilst the dialog is closing and the user mouses over a new item + return + } activeSuggestion = nodeItem if (suggestCallback) { if (!nodeItem) {