fix: weird behavior in some text editors

This commit is contained in:
Fabio Di Stasio 2023-06-01 11:42:19 +02:00
parent 446199827b
commit 22bdaac18b
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ watch(() => props.mode, () => {
});
watch(() => props.modelValue, () => {
if (editor)
if (editor && props.readOnly)
editor.session.setValue(props.modelValue);
});