Open
Description
- I confirm that this is an issue rather than a question.
Bug report
When opening a new tab in the browser and navigating directly to an anchor within a page, selecting other anchors will scroll there, but not update the sidenav to show the newly selected option, but only in the yarn build
version of the code. This will work properly using yarn dev
.
Version
vuepress@1.0.0-alpha.44, latest master
Steps to reproduce
Navigating to Front Matter in the Markdown page of the v1 documentation will work correctly. Navigating to another anchor, either by clicking or scrolling, will update the hash in the URL, but will not update the selected item in the sidebar.
What is expected?
The nav items in the sidebar should be activated when navigating through elements.
What is actually happening?
The original anchor navigated to is the only item that will display as active in the sidebar.
Other relevant information
- Your OS: macOS Mojave 10.14.3
- Node.js version: v11.12.0
- Browser version: Chrome 73.0.3683.86, Firefox 66.0.1, Safari 12.0.3
- Is this a global or local install? Local
- Which package manager did you use for the install? Yarn