CyCraft/planetar

fix(doc-page): page should move to section in URL hash upon reload

Closed this issue · 0 comments

reproduction steps:

  1. click on a chapter to scroll to it
  2. ⌘R to reload
  3. the page will reload and stay at the top of the page
  • you may need to create a new test page that uses DocPage.vue in planetar/packages/dev to reproduce the issue

desired fix

  • fix to be implemented at: DocPage.vue
  • have DocPage detect when all examples/sections are mounted. (I'm listening to some events to know about this already)
  • then the browser URL hash needs to be obtained and scrolled towards the section.
  • use Quasar scroll utils to scroll to the element