fix input validation and reporting

This commit is contained in:
David Tsay 2024-11-07 16:19:03 -08:00
parent 16a4ca7a9c
commit 9ad00a226c

View File

@ -170,7 +170,7 @@ export default {
validateInput(refName) { validateInput(refName) {
this.clearAllValidation(); this.clearAllValidation();
const validationResult = this.timeFormatter.validate(this.formattedBounds[refName]) const validationResult = this.timeSystemFormatter.validate(this.formattedBounds[refName])
? { valid: true } ? { valid: true }
: { valid: false, message: `Invalid Time` }; : { valid: false, message: `Invalid Time` };
@ -205,7 +205,6 @@ export default {
if (validationResult.valid !== true) { if (validationResult.valid !== true) {
input.setCustomValidity(validationResult.message); input.setCustomValidity(validationResult.message);
input.title = validationResult.message; input.title = validationResult.message;
this.hasLogicalValidationErrors = true;
} else { } else {
input.setCustomValidity(''); input.setCustomValidity('');
input.title = ''; input.title = '';