if (inputField.required) {
if (inputField.value.trim() === "") {
DomUtil.innerError(inputField, Language.get("wcf.global.form.error.empty"));
- inputField.closest('dl')?.classList.add('formError');
+ inputField.closest("dl")?.classList.add("formError");
isValid = false;
} else {
DomUtil.innerError(inputField, false);
- inputField.closest('dl')?.classList.remove('formError');
+ inputField.closest("dl")?.classList.remove("formError");
}
}
});
if (inputField.required) {
if (inputField.value.trim() === "") {
Util_1.default.innerError(inputField, Language.get("wcf.global.form.error.empty"));
- (_a = inputField.closest('dl')) === null || _a === void 0 ? void 0 : _a.classList.add('formError');
+ (_a = inputField.closest("dl")) === null || _a === void 0 ? void 0 : _a.classList.add("formError");
isValid = false;
}
else {
Util_1.default.innerError(inputField, false);
- (_b = inputField.closest('dl')) === null || _b === void 0 ? void 0 : _b.classList.remove('formError');
+ (_b = inputField.closest("dl")) === null || _b === void 0 ? void 0 : _b.classList.remove("formError");
}
}
});