Fix tooltip visibility issues during scroll in model selector popup (#24593)

Co-authored-by: 17hz <0x149527@gmail.com>
This commit is contained in:
Ujjwal Maurya
2025-08-27 08:00:37 +05:30
committed by GitHub
parent 5df3a4eb98
commit a159c13333
2 changed files with 33 additions and 2 deletions

View File

@@ -11,6 +11,17 @@ class TooltipManager {
if (this.activeCloser === closeFn)
this.activeCloser = null
}
/**
* Closes the currently active tooltip by calling its closer function
* and clearing the reference to it
*/
closeActiveTooltip() {
if (this.activeCloser) {
this.activeCloser()
this.activeCloser = null
}
}
}
export const tooltipManager = new TooltipManager()