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) {