diff --git a/control/frontend/src/lib/components/TextInput.svelte b/control/frontend/src/lib/components/TextInput.svelte index 9b41874..ef34fe6 100644 --- a/control/frontend/src/lib/components/TextInput.svelte +++ b/control/frontend/src/lib/components/TextInput.svelte @@ -30,7 +30,7 @@ enter_function?: (() => void) | null; } = $props(); - let focus_bg = get_shifted_color(bg, 100); + let focus_bg = $derived(get_shifted_color(bg, 100)); let focused: boolean = $state(false); let current_info = $state(''); let input_element: HTMLInputElement;