diff --git a/src/lib/components/autocomplete/Autocomplete.svelte b/src/lib/components/autocomplete/Autocomplete.svelte
index 6a0a017..9050f8b 100644
--- a/src/lib/components/autocomplete/Autocomplete.svelte
+++ b/src/lib/components/autocomplete/Autocomplete.svelte
@@ -97,7 +97,7 @@
setContext('autocomplete-mobile', isMobile);
setContext('autocomplete-actual-value', value);
- const finalClass = twMerge(defaultClass, $$props.class);
+ $: finalClass = twMerge(defaultClass, $$props.class);
{
valueDayJS = value === null ? null : dayjs(value);
diff --git a/src/lib/components/input-number/InputNumber.svelte b/src/lib/components/input-number/InputNumber.svelte
index 30ef437..87931ea 100644
--- a/src/lib/components/input-number/InputNumber.svelte
+++ b/src/lib/components/input-number/InputNumber.svelte
@@ -62,11 +62,8 @@
}
}
- const finalClass = twMerge(
- 'stwui-input-number',
-
- $$props.class
- );
+ const defaultClass = 'stwui-input-number';
+ $: finalClass = twMerge(defaultClass, $$props.class);
setContext('input-number-name', name);
setContext('input-number-error', currentError);