fix label not rolling back when no value is set

This commit is contained in:
2023-03-01 19:39:42 +10:00
parent 07aa82e7d9
commit 9a0768a2d5

View File

@@ -187,7 +187,7 @@ if (objControl) {
label.value = toTitleCase(props.control); label.value = toTitleCase(props.control);
} }
inputActive.value = value.value.length > 0; inputActive.value = value.value.length > 0 || props.type == "select";
watch( watch(
() => objControl.validation.result.valid, () => objControl.validation.result.valid,