From d9e4ccfca8d96b6940da7a0cee06da3fe8d30103 Mon Sep 17 00:00:00 2001 From: James Collins Date: Tue, 21 Feb 2023 12:40:52 +1000 Subject: [PATCH] set active if value exists --- resources/js/components/SMInput.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/js/components/SMInput.vue b/resources/js/components/SMInput.vue index 7020d71..9383be1 100644 --- a/resources/js/components/SMInput.vue +++ b/resources/js/components/SMInput.vue @@ -176,6 +176,8 @@ if (objControl) { label.value = toTitleCase(props.control); } + inputActive.value = value.value.length > 0; + watch( () => objControl.validation.result.valid, (newValue) => {