Skip to content

Commit

Permalink
fix(ui): clear history after editor initialization (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
edimitchel committed Jan 14, 2022
1 parent aba31c8 commit ab29b2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/ui/client/components/views/ViewEditor.vue
Expand Up @@ -53,6 +53,7 @@ watch([cm, failed], () => {
widgets.push(cm.value!.addLineWidget(pos.line - 1, el))
}
})
cm.value?.clearHistory() // Prevent getting access to initial state
}, 100)
}, { flush: 'post' })
</script>
Expand Down

0 comments on commit ab29b2a

Please sign in to comment.