From ab06c7de5d498cbb53c8b88af96b81763278a233 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Fri, 28 Jun 2024 12:45:43 +0200 Subject: [PATCH] Add validator for text modelValue --- resources/js/components/form/Text.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/components/form/Text.vue b/resources/js/components/form/Text.vue index 47635bcd..a25a6ea0 100644 --- a/resources/js/components/form/Text.vue +++ b/resources/js/components/form/Text.vue @@ -113,7 +113,7 @@ const props = defineProps({ default: () => '', }, modelValue: { - type: String, + validator: (v) => typeof v === 'string' || v === null, required: true, }, label: {