From 0b3876f44ee29a1e2b3765cfb109fd1f6324ead0 Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Mon, 27 Feb 2023 15:28:54 +0100 Subject: [PATCH] fix(components): allow number and null as values on text input --- apps/admin-components/src/components/DefaultTextInput.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/admin-components/src/components/DefaultTextInput.vue b/apps/admin-components/src/components/DefaultTextInput.vue index a3922d2fa..33a5a7656 100644 --- a/apps/admin-components/src/components/DefaultTextInput.vue +++ b/apps/admin-components/src/components/DefaultTextInput.vue @@ -10,7 +10,7 @@ import {generateFieldId, useElement} from '@myparcel-pdk/frontend-core/src'; import {useVModel} from '@vueuse/core'; // eslint-disable-next-line vue/no-unused-properties -const props = defineProps({modelValue: {type: String, default: null}}); +const props = defineProps<{modelValue: string | number | null}>(); const emit = defineEmits(['update:modelValue']); const model = useVModel(props, undefined, emit);