1
0
mirror of https://github.com/flarum/core.git synced 2025-10-22 12:16:07 +02:00

Don't use browser scroll restore in DiscussionPage (#2476)

Although native browser scroll restorations have become quite powerful, it interferes with Flarum's PostStream, so if we're on a DiscussionPage, we use manual scroll restoration.
This commit is contained in:
Alexander Skvortsov
2020-11-30 14:01:08 -05:00
committed by GitHub
parent d5e124b4a2
commit f968420216
2 changed files with 13 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ export default class DiscussionPage extends Page {
oninit(vnode) {
super.oninit(vnode);
this.useBrowserScrollRestoration = false;
/**
* The discussion that is being viewed.
*