From 151ee7812adc0a525a8c653cc1871b82741b551f Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 23 Oct 2023 17:11:28 +0200 Subject: [PATCH] Fix loading of additional comment responses --- ts/WoltLabSuite/Core/Component/Comment/List.ts | 2 +- .../files/js/WoltLabSuite/Core/Component/Comment/List.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/WoltLabSuite/Core/Component/Comment/List.ts b/ts/WoltLabSuite/Core/Component/Comment/List.ts index d1a2723deb..f65c48d70e 100644 --- a/ts/WoltLabSuite/Core/Component/Comment/List.ts +++ b/ts/WoltLabSuite/Core/Component/Comment/List.ts @@ -317,7 +317,7 @@ class CommentList { comment .querySelector(".commentResponseList")! - .insertBefore(fragment, this.#container.querySelector(".commentLoadNextResponses")); + .insertBefore(fragment, comment.querySelector(".commentLoadNextResponses")); comment.dataset.lastResponseTime = response.lastResponseTime.toString(); comment.dataset.lastResponseId = response.lastResponseID.toString(); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Comment/List.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Comment/List.js index 5e07d6ee4f..0a9992d5a4 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Comment/List.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Comment/List.js @@ -237,7 +237,7 @@ define(["require", "exports", "tslib", "../../Ajax", "../../Dom/Change/Listener" }); comment .querySelector(".commentResponseList") - .insertBefore(fragment, this.#container.querySelector(".commentLoadNextResponses")); + .insertBefore(fragment, comment.querySelector(".commentLoadNextResponses")); comment.dataset.lastResponseTime = response.lastResponseTime.toString(); comment.dataset.lastResponseId = response.lastResponseID.toString(); this.#initLoadNextResponses(comment); -- 2.20.1