From 23288e15e0375d01690849a1075b1731edf2aed2 Mon Sep 17 00:00:00 2001 From: James Collins Date: Mon, 13 Mar 2023 19:48:01 +1000 Subject: [PATCH] support value = null --- resources/js/components/SMInput.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/components/SMInput.vue b/resources/js/components/SMInput.vue index a023c14..b77c4a5 100644 --- a/resources/js/components/SMInput.vue +++ b/resources/js/components/SMInput.vue @@ -187,7 +187,7 @@ if (objControl) { label.value = toTitleCase(props.control); } - inputActive.value = value.value.length > 0 || props.type == "select"; + inputActive.value = value.value?.length > 0 || props.type == "select"; watch( () => objControl.validation.result.valid,