From f728abda06b02ef3e27e16844b22fa4a364e23ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 3 Nov 2021 10:52:03 -0400 Subject: [PATCH] fix: remove tooltip on ajaxify --- public/src/client/topic.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/src/client/topic.js b/public/src/client/topic.js index 4f32f70777..478883b62e 100644 --- a/public/src/client/topic.js +++ b/public/src/client/topic.js @@ -180,6 +180,10 @@ define('forum/topic', [ } let timeoutId = 0; const postCache = {}; + $(window).one('action:ajaxify.start', function () { + clearTimeout(timeoutId); + $('#post-tooltip').remove(); + }); $('[component="topic"]').on('mouseenter', '[component="post"] a, [component="topic/event"] a', async function () { const link = $(this);