mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:13:22 +08: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 db337b10ee
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…
Reference in New Issue
Block a user