fix(mermaid): diagram not updating

This commit is contained in:
Elian Doran 2025-05-11 19:24:05 +03:00
parent e4f5e5473b
commit ce5debd9bf
No known key found for this signature in database

View File

@ -132,7 +132,14 @@ export default abstract class AbstractSplitTypeWidget extends TypeWidget {
super();
this.editorTypeWidget = new EditableCodeTypeWidget();
this.editorTypeWidget.isEnabled = () => true;
this.editorTypeWidget.getExtraOpts = this.buildEditorExtraOptions;
const defaultOptions = this.editorTypeWidget.getExtraOpts();
this.editorTypeWidget.getExtraOpts = () => {
return {
...defaultOptions,
...this.buildEditorExtraOptions()
};
};
}
doRender(): void {