mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
fix input validation and reporting
This commit is contained in:
parent
16a4ca7a9c
commit
9ad00a226c
@ -170,7 +170,7 @@ export default {
|
||||
validateInput(refName) {
|
||||
this.clearAllValidation();
|
||||
|
||||
const validationResult = this.timeFormatter.validate(this.formattedBounds[refName])
|
||||
const validationResult = this.timeSystemFormatter.validate(this.formattedBounds[refName])
|
||||
? { valid: true }
|
||||
: { valid: false, message: `Invalid Time` };
|
||||
|
||||
@ -205,7 +205,6 @@ export default {
|
||||
if (validationResult.valid !== true) {
|
||||
input.setCustomValidity(validationResult.message);
|
||||
input.title = validationResult.message;
|
||||
this.hasLogicalValidationErrors = true;
|
||||
} else {
|
||||
input.setCustomValidity('');
|
||||
input.title = '';
|
||||
|
Loading…
Reference in New Issue
Block a user