Do not update suggestion whilst typeSearch hiding

This commit is contained in:
Nick O'Leary
2025-06-26 11:05:55 +01:00
parent 176ab9c554
commit b18fb321b6

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