Skip to content

Commit

Permalink
fix: weird behavior in some text editors
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Jun 1, 2023
1 parent 4461998 commit 22bdaac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/BaseTextEditor.vue
Expand Up @@ -45,7 +45,7 @@ watch(() => props.mode, () => {
});
watch(() => props.modelValue, () => {
if (editor)
if (editor && props.readOnly)
editor.session.setValue(props.modelValue);
});
Expand Down

0 comments on commit 22bdaac

Please sign in to comment.