diff --git a/src/lib/components/input-number/InputNumber.svelte b/src/lib/components/input-number/InputNumber.svelte
index 04e256fc..c44ca8f8 100644
--- a/src/lib/components/input-number/InputNumber.svelte
+++ b/src/lib/components/input-number/InputNumber.svelte
@@ -26,8 +26,8 @@
if (!e.key.match(/^[0-9]+$/)) e.preventDefault();
}
- setContext('name', name);
- setContext('error', currentError);
+ setContext('input-number-name', name);
+ setContext('input-number-error', currentError);
diff --git a/src/lib/components/input-number/Label.svelte b/src/lib/components/input-number/Label.svelte
index 0b44c671..73e41119 100644
--- a/src/lib/components/input-number/Label.svelte
+++ b/src/lib/components/input-number/Label.svelte
@@ -8,8 +8,8 @@
import type { Writable } from 'svelte/store';
const forwardEvents = forwardEventsBuilder(get_current_component());
- const name: string = getContext('name');
- const error: Writable = getContext('error');
+ const name: string = getContext('input-number-name');
+ const error: Writable = getContext('input-number-error');
let defaultClass = 'block text-sm font-medium';
if ($error) {