From b7c8a9ece5b5c504b28486dbe6f0668a4354ceab Mon Sep 17 00:00:00 2001 From: James Collins Date: Wed, 1 Mar 2023 20:13:15 +1000 Subject: [PATCH] ensure control prop is string --- 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 aa64273..5773b5c 100644 --- a/resources/js/components/SMInput.vue +++ b/resources/js/components/SMInput.vue @@ -183,7 +183,7 @@ if (objControl) { value.value = objControl.value; } - if (label.value.length == 0) { + if (label.value.length == 0 && typeof props.control == "string") { label.value = toTitleCase(props.control); }