From 4b35753fc7efc3df4911d932ac87521eb23949fd Mon Sep 17 00:00:00 2001 From: Joakim Date: Thu, 19 Feb 2026 16:30:20 +0100 Subject: [PATCH] fix: move scroll lock to afterUpdate to avoid SSR document access The $: reactive block runs during SSR component init. Use afterUpdate with a mounted guard instead so document is only accessed client-side. Co-Authored-By: Claude Opus 4.6 --- opal-web/src/lib/components/BottomSheet.svelte | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/opal-web/src/lib/components/BottomSheet.svelte b/opal-web/src/lib/components/BottomSheet.svelte index 9c82624..e419d20 100644 --- a/opal-web/src/lib/components/BottomSheet.svelte +++ b/opal-web/src/lib/components/BottomSheet.svelte @@ -1,6 +1,5 @@