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:
parent
446199827b
commit
22bdaac18b
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user