From da32b2d7739abbe91b1908789a299d89fc641e1f Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Mon, 25 May 2026 11:53:52 +0200 Subject: [PATCH] fix: fix toolbar active states not updating in Svelte 5 --- src/App.svelte | 5 +++-- src/lib/editor/Editor.svelte | 7 ++++--- src/lib/editor/Toolbar.svelte | 28 +++++++++++++++++++--------- 3 files changed, 26 insertions(+), 14 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index 3e57cb8..3ea1676 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -5,6 +5,7 @@ import { exportToOdt } from './lib/export/odt'; let editor: Editor | null = $state(null); + let tick: number = $state(0); async function handleExport() { if (editor) await exportToOdt(editor); @@ -13,12 +14,12 @@
- +
- +