From 9a0768a2d55df3f129bcefe6bf5c2b6f81ad5ffe Mon Sep 17 00:00:00 2001 From: James Collins Date: Wed, 1 Mar 2023 19:39:42 +1000 Subject: [PATCH] fix label not rolling back when no value is set --- 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 1074b95..aa64273 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; + inputActive.value = value.value.length > 0 || props.type == "select"; watch( () => objControl.validation.result.valid,