pm_section: Fix ghost tooltip on collapse/expand DM toggle.

As reported in a bug report, the tooltip on the DM collapse/expand
toggle was reappearing after switching in and out of the browser window.

This commit destroys the current instance of the tooltip when it is
hidden. This clean up ensures that the tooltip does not appear again
unless the triggered explicitly by the user.
This commit is contained in:
Sayam Samal
2024-06-19 19:29:27 +05:30
committed by Tim Abbott
parent 906a9ca8f2
commit eb93738873

View File

@@ -487,6 +487,9 @@ export function initialize(): void {
},
delay: EXTRA_LONG_HOVER_DELAY,
appendTo: () => document.body,
onHidden(instance) {
instance.destroy();
},
});
tippy.delegate("body", {