Skip to content

Commit

Permalink
fix: reset CodeMirror history when route changes (#1328)
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX authored Feb 22, 2024
1 parent e05a716 commit 0db56b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/client/internals/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ onMounted(async () => {
noteEditor.refresh()
})
})
watch(currentSlideId, () => {
contentEditor.clearHistory()
noteEditor.clearHistory()
}, { flush: 'post' })
})
const handlerDown = ref(false)
Expand Down

0 comments on commit 0db56b8

Please sign in to comment.