Merge pull request #5193 from node-red/fix-hide-suggestion

Do not update suggestion whilst typeSearch hiding
This commit is contained in:
Nick O'Leary
2025-06-26 14:35:55 +01:00
committed by GitHub

View File

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