Skip to content

Node.js based forum software built for the modern web

fix: post preview not working on parent post

Barış Soner Uşaklıa28dd70fcb2a
diff --git a/public/src/client/topic.js b/public/src/client/topic.js
index 3e7ffa7ee9..7e65cbeb4f 100644
--- a/public/src/client/topic.js
+++ b/public/src/client/topic.js
@@ -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;