Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlbyk committed Jul 30, 2023
1 parent ef82989 commit 630663d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,6 @@ export class ValidationService {
* @returns
*/
isFieldValid = (field: HTMLElement, prevalidate: boolean = true, callback?: ValidatedCallback) => {

if (prevalidate) {
let form = field.closest("form");
if (form != null) {
Expand Down Expand Up @@ -965,7 +964,6 @@ export class ValidationService {
let renderedMessages = [];
let ul = document.createElement('ul');
for (let key in this.summary) {

// It could be that the message we are rendering belongs to one of a fieldset of multiple inputs that's not selected,
// even if another one in the fieldset is. In that case the fieldset is valid, and we shouldn't render the message.
const matchingElement = this.elementByUID[key];
Expand Down Expand Up @@ -1056,7 +1054,6 @@ export class ValidationService {
this.ValidationInputValidCssClassName);

if (input.form) {

// Adding an error to one input should also add it to others with the same name (i.e. for radio button and checkbox lists).
const inputs = input.form.querySelectorAll(`input[name="${input.name}"]`);
for (let i = 0; i < inputs.length; i++) {
Expand Down Expand Up @@ -1114,7 +1111,6 @@ export class ValidationService {
*/
createValidator(input: ValidatableElement, directives: ValidationDirective) {
return async () => {

// only validate visible fields
if (!this.isHidden(input)) {
for (let key in directives) {
Expand Down Expand Up @@ -1155,7 +1151,6 @@ export class ValidationService {

this.removeError(input);
return true;

};
}

Expand Down

0 comments on commit 630663d

Please sign in to comment.