mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
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:
@@ -487,6 +487,9 @@ export function initialize(): void {
|
||||
},
|
||||
delay: EXTRA_LONG_HOVER_DELAY,
|
||||
appendTo: () => document.body,
|
||||
onHidden(instance) {
|
||||
instance.destroy();
|
||||
},
|
||||
});
|
||||
|
||||
tippy.delegate("body", {
|
||||
|
||||
Reference in New Issue
Block a user