Skip to content

Commit

Permalink
fix(interface): 🐛 hide validator span if input is hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNZL committed Jul 17, 2022
1 parent f0e1097 commit f937c75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/options/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export abstract class InputFieldValidator {
}

this.statusElement.safelySetInnerHTML(status);
if (this.input.isHidden) this.statusElement.hide();

SaveButton.updateState(SaveButtonUpdates.Pending);

Expand Down Expand Up @@ -209,6 +210,7 @@ export abstract class InputFieldValidator {
}

this.errorElement.safelySetInnerHTML(error);
if (this.input.isHidden) this.errorElement.hide();

SaveButton.updateState(SaveButtonUpdates.Disable);

Expand Down

0 comments on commit f937c75

Please sign in to comment.