Skip to content

Commit 41774ad

Browse files
committed
fixing scrolling issue
1 parent 2b6a054 commit 41774ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

script/component/MarkdownReader.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const MarkdownReader = {
1010
watch: {
1111
'file': function(file) {
1212
this.setDocument();
13-
this.loadFile(file);
13+
this.loadFile(file)
14+
.then(() => {
15+
this.scrollToFragment(this.fragment);
16+
});
1417
},
1518
'fragment': function(fragment) {
1619
this.scrollToFragment(fragment);

0 commit comments

Comments
 (0)