Skip to content

Commit

Permalink
remove console error
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Dec 15, 2021
1 parent 9597a41 commit 34ec908
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/src/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ export function addErrors(form, handlerName, validationResponse, errorOnPotentia
const errContainer = handlerScope.querySelector(`.p-form__errors`);
if(!errContainer)
{
console.error('validation error:', `"${handlerName}"`, validationResponse);
return;
}

Expand Down Expand Up @@ -250,8 +249,7 @@ export function validateForm(form)
fullResult.set(handlerName, result);
});

form.dispatchEvent(new CustomEvent(
'form-validation',
form.dispatchEvent(new CustomEvent('form-validation',
{detail: {result: fullResult}, bubbles: true, cancellable: false}
));
return fullResult;
Expand Down

0 comments on commit 34ec908

Please sign in to comment.