1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-02-02 02:16:55 +01:00

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

View File

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