Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tippy: Remove redundant tippy instance destruction.

Saubhagya Pateld0e45b99efee
diff --git a/web/src/tippyjs.ts b/web/src/tippyjs.ts
index 9a0c948ed45..e0133c1ca13 100644
--- a/web/src/tippyjs.ts
+++ b/web/src/tippyjs.ts
@@ -527,7 +527,6 @@ export function initialize(): void {
);
return undefined;
}
- instance.destroy();
return false;
},
appendTo: () => document.body,
@@ -884,7 +883,6 @@ export function initialize(): void {
instance.setContent(content);
return undefined;
}
- instance.destroy();
return false;
},
appendTo: () => document.body,
@@ -903,7 +901,6 @@ export function initialize(): void {
instance.setContent(ui_util.parse_html(error_message));
return undefined;
}
- instance.destroy();
return false;
},
appendTo: () => document.body,
@@ -949,7 +946,6 @@ export function initialize(): void {
$(instance.popper).find(".tippy-content").css("display", "block");
return undefined;
}
- instance.destroy();
return false;
},
appendTo: () => document.body,