Browse Source

fix(code-mirror): refresh the style when the value changes

pull/824/head
cKey 3 years ago
parent
commit
be98e47deb
  1. 1
      apps/vue/src/components/CodeEditor/src/codemirror/CodeMirror.vue

1
apps/vue/src/components/CodeEditor/src/codemirror/CodeMirror.vue

@ -46,6 +46,7 @@
const oldValue = editor?.getValue();
if (value !== oldValue) {
editor?.setValue(value ? value : '');
setTimeout(refresh, 50);
}
},
{ flush: 'post' },

Loading…
Cancel
Save