We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a4e37f commit a3938b2Copy full SHA for a3938b2
packages/@vuepress/core/lib/app/root-mixins/updateLoadingState.js
@@ -1,9 +1,9 @@
1
export default {
2
created () {
3
this.$vuepress.$on('AsyncMarkdownContentMounted', () => {
4
- this.$vuepress.$set('contentMounted', true)
+ this.$vuepress.$set('contentMounted', true);
5
6
- document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ [].slice.call(document.querySelectorAll('a[href^="#"]')).forEach(anchor => {
7
anchor.addEventListener('click', function (e) {
8
e.preventDefault()
9
history.pushState(history.state, document.title, e.target.href)
0 commit comments