Skip to content

Commit

Permalink
NTR: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Mar 18, 2024
1 parent c6f4d83 commit 1699a4a
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@ export default class MollieBancomatPlugin extends Plugin {

const phoneField = document.getElementById('mollieBancomatPayPhone');
if (phoneField === null) {
console.log("phone field not found");

return;
}

const inputFieldWrapper = document.querySelector('.mollie-bancomat-pay');
console.log(inputFieldWrapper);

const errorMessageElement = document.querySelector('.mollie-bancomat-pay [data-form-validation-invalid-phone="true"]');
console.log(errorMessageElement);

phoneField.addEventListener('focus',(e)=>{
inputFieldWrapper.classList.add('was-validated');
e.target.removeAttribute('invalid');
errorMessageElement.classList.add('d-none');
console.log("focus");
});


Expand All @@ -28,7 +27,6 @@ export default class MollieBancomatPlugin extends Plugin {
e.target.setAttribute('invalid',true);
errorMessageElement.classList.remove('d-none');
}
console.log("blur");
return form.reportValidity();

})
Expand Down

0 comments on commit 1699a4a

Please sign in to comment.