]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: update comment in docs
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 6 Apr 2020 09:09:55 +0000 (11:09 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 6 Apr 2020 09:09:55 +0000 (11:09 +0200)
e2e/specs/scroll-behavior.js

index f8f31f8f994f33a6e1f3268b55cdd8251ff8fefd..167da492490253c44317946a3aecff3e10e17ee7 100644 (file)
@@ -4,9 +4,9 @@ module.exports = {
   ...bsStatus(),
 
   '@tags': ['history'],
-  // TODO: position is not saved when navigating back using browser buttons and
-  // therefore navigating forward does not restore position as it should
-  // '@disabled': true,
+  // NOTE: position is not saved when navigating back using browser buttons and
+  // therefore navigating forward does not restore position unless we use native
+  // browser behavior `window.scrollRestoration = 'auto'`
 
   'scroll behavior': function(browser) {
     const TIMEOUT = 2000