We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 084deca commit 25ef456Copy full SHA for 25ef456
browser/components/MarkdownPreview.js
@@ -591,6 +591,11 @@ export default class MarkdownPreview extends React.Component {
591
if (needsRewriteIframe) {
592
this.rewriteIframe()
593
}
594
+
595
+ // Should scroll to top after selecting another note
596
+ if (prevProps.noteKey !== this.props.noteKey) {
597
+ this.getWindow().scrollTo(0, 0)
598
+ }
599
600
601
getStyleParams () {
@@ -962,8 +967,6 @@ export default class MarkdownPreview extends React.Component {
962
967
overlay.appendChild(zoomImg)
963
968
document.body.appendChild(overlay)
964
969
965
-
966
- this.getWindow().scrollTo(0, 0)
970
971
972
focus () {
0 commit comments