fix: post preview not working on parent post

This commit is contained in:
Barış Soner Uşaklı
2024-06-27 12:11:09 -04:00
parent 2a239a79bb
commit a28dd70fcb

View File

@@ -297,7 +297,7 @@ define('forum/topic', [
destroyed = true;
}
$(window).one('action:ajaxify.start', destroyTooltip);
$('[component="topic"]').on('mouseenter', '[component="post/parent"] a, [component="post/content"] a, [component="topic/event"] a', async function () {
$('[component="topic"]').on('mouseenter', '[component="post/parent"], [component="post/content"] a, [component="topic/event"] a', async function () {
const link = $(this);
destroyed = false;