mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: Topic timeline not updating in megatopics. (#14645)
Before this fix, jumping to posts using the topic timeline scrollbar will not update the counts since the topic scrollarea is not rerendered. Follow-up to db337b10ee2af66f464082ca24bb33536da5fbde
This commit is contained in:
parent
9bc68a5502
commit
e74e3fa043
@ -555,7 +555,7 @@ export default createWidget("topic-timeline", {
|
||||
if (!attrs.mobileView) {
|
||||
const streamLength = attrs.topic.get("postStream.stream.length");
|
||||
|
||||
if (streamLength < 2) {
|
||||
if (streamLength === 1) {
|
||||
const postsWrapper = document.querySelector(".posts-wrapper");
|
||||
if (postsWrapper && postsWrapper.offsetHeight < 1000) {
|
||||
displayTimeLineScrollArea = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user