ensure control prop is string

This commit is contained in:
2023-03-01 20:13:15 +10:00
parent 29dfb852c8
commit b7c8a9ece5

View File

@@ -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);
}