fix: have ul as replies container, not div

This commit is contained in:
Julian Lam
2022-11-30 14:40:10 -05:00
parent 9d599341d9
commit 0dfd22c12b

View File

@@ -34,7 +34,7 @@ define('forum/topic/replies', ['forum/topic/posts', 'hooks', 'alerts'], function
hideReplies: config.hasOwnProperty('showNestedReplies') ? !config.showNestedReplies : true,
};
app.parseAndTranslate('topic', 'posts', tplData, function (html) {
const repliesEl = $('<div>', { component: 'post/replies' }).html(html).hide();
const repliesEl = $('<ul>', { component: 'post/replies', class: 'list-unstyled' }).html(html).hide();
if (button.attr('data-target-component')) {
post.find('[component="' + button.attr('data-target-component') + '"]').html(repliesEl);
} else {