Fix editor broken moving between code and config
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
const newText = editorMode === 'code' ? code : mermaid;
|
||||
if (newText !== text) {
|
||||
// console.log('updating editor text', newText);
|
||||
editor.setScrollTop(0);
|
||||
editor.setValue(newText);
|
||||
text = newText;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user