From d0e45b99efee05780c4d6e5b8dc26316ec9484b0 Mon Sep 17 00:00:00 2001 From: Saubhagya Patel Date: Fri, 15 Aug 2025 14:59:12 +0530 Subject: [PATCH] tippy: Remove redundant tippy instance destruction. When `onShow()` returns `false`, the tippy instance is automatically destroyed. This commit removes manual destruction calls in such cases. --- web/src/tippyjs.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/web/src/tippyjs.ts b/web/src/tippyjs.ts index 9a0c948ed4..e0133c1ca1 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,