From ac90379499f080dd781fef1e19d921f9bc72a047 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 20 Feb 2024 23:22:13 +0100 Subject: [PATCH] Fix checkbox jumping behaviour --- src/UI/Base/Checkbox.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UI/Base/Checkbox.svelte b/src/UI/Base/Checkbox.svelte index b2efcb578..0b610d5f3 100644 --- a/src/UI/Base/Checkbox.svelte +++ b/src/UI/Base/Checkbox.svelte @@ -6,10 +6,11 @@ */ export let selected: UIEventSource let _c: boolean = selected.data ?? true + let id = `checkbox-input-${Math.round(Math.random()*100000000)}` $: selected.set(_c)