mirror of
https://github.com/Fabio286/antares.git
synced 2025-01-05 21:43:34 +01:00
fix: weird behavior in some text editors
This commit is contained in:
parent
446199827b
commit
22bdaac18b
@ -45,7 +45,7 @@ watch(() => props.mode, () => {
|
||||
});
|
||||
|
||||
watch(() => props.modelValue, () => {
|
||||
if (editor)
|
||||
if (editor && props.readOnly)
|
||||
editor.session.setValue(props.modelValue);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user