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 cf714cf20..f8855ffc2 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 @@ -293,6 +293,14 @@ RED.typeSearch = (function() { } } function confirm(def) { + if (!activeSuggestion) { + // The user has hit Enter without selecting an entry in the list. + // This means no suggestion has been shown yet - and the position recalculation + // has not been done. + // Trigger an update of the suggestion to get the position right before + // applying. + updateSuggestion(def) + } hide(); if (!def.nodes && !/^_action_:/.test(def.type)) { typesUsed[def.type] = Date.now();