From e216a393e414117e85fe738561bf6032ba97d0fc Mon Sep 17 00:00:00 2001 From: grabowski Date: Mon, 20 Apr 2026 16:20:50 +0700 Subject: [PATCH] Use MutationObserver to constrain dynamically-rendered date inputs Previous afterNavigate hook missed inputs inside conditional blocks that appear after user interaction (e.g. the "+ New Expense" form). Replaced with a MutationObserver on document.body that catches every as it's added to the DOM and sets min/max. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/routes/+layout.svelte | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 224cf8a..7e69a01 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,23 +1,34 @@