diff --git a/js/src/forum/states/PostStreamState.js b/js/src/forum/states/PostStreamState.js index 7a489c93b..c052e832f 100644 --- a/js/src/forum/states/PostStreamState.js +++ b/js/src/forum/states/PostStreamState.js @@ -332,7 +332,7 @@ class PostStreamState { page: { near: number }, }) .then(this.show.bind(this)) - .then(() => m.redraw()); + .then(() => anchorScroll($(`.PostStream-item[data-number="${number}"]`), () => m.redraw(true))); } /** @@ -356,7 +356,7 @@ class PostStreamState { return this.loadRange(start, end) .then(this.show.bind(this)) - .then(() => m.redraw()); + .then(() => anchorScroll($(`.PostStream-item[data-index="${index}"]`), () => m.redraw(true))); } /**