From 7f15f8a7de9428736bff1489887b74d2e3a573dc Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 19 Jan 2025 23:48:30 +0200 Subject: [PATCH] fix(mindmap): save direction as soon as it is changed (closes #986) --- src/public/app/widgets/type_widgets/mind_map.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/public/app/widgets/type_widgets/mind_map.ts b/src/public/app/widgets/type_widgets/mind_map.ts index 37ca7545b..afa34df06 100644 --- a/src/public/app/widgets/type_widgets/mind_map.ts +++ b/src/public/app/widgets/type_widgets/mind_map.ts @@ -175,6 +175,11 @@ export default class MindMapWidget extends TypeWidget { } }); + // Save the mind map if the user changes the layout direction. + this.$content.on("click", ".mind-elixir-toolbar.lt", () => { + this.spacedUpdate.scheduleUpdate(); + }); + super.doRender(); }