Skip to content

Build your personal knowledge base with Trilium Notes

fix(mermaid): code background stuck after navigating to new note

Elian Doran9fadc9341a2a
diff --git a/apps/client/src/widgets/type_widgets/abstract_split_type_widget.ts b/apps/client/src/widgets/type_widgets/abstract_split_type_widget.ts
index 3758229ea6..cead9d2548 100644
--- a/apps/client/src/widgets/type_widgets/abstract_split_type_widget.ts
+++ b/apps/client/src/widgets/type_widgets/abstract_split_type_widget.ts
@@ -174,6 +174,7 @@ export default abstract class AbstractSplitTypeWidget extends TypeWidget {
cleanup(): void {
this.#destroyResizer();
+ this.editorTypeWidget.cleanup();
}
async doRefresh(note: FNote) {