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

Do not update suggestion whilst typeSearch hiding
pull/5195/head
Nick O'Leary 2025-06-26 14:35:55 +01:00 committed by GitHub
commit 3e9106635c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

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