Skip to content

Commit

Permalink
SITES-26450 - Accessibility Issues with AEM Core Components (Form) - …
Browse files Browse the repository at this point in the history
…WCAG 2.1 Compliance

 * fixed JS syntax
  • Loading branch information
LSantha committed Feb 20, 2025
1 parent d8834a1 commit 935dc76
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
}
}
if (displayValidationMessage) {
let validationMessage = event.target.parentElement.querySelector(".cmp-form-text__validation-message");
var validationMessage = event.target.parentElement.querySelector(".cmp-form-text__validation-message");
if (validationMessage) {
validationMessage.innerText = event.target.validationMessage;
}
Expand Down Expand Up @@ -143,7 +143,7 @@
};

function onDocumentReady() {
var validationMessages = document.querySelectorAll(selectors.validationMessage);
var validationMessages = document.querySelectorAll(selectors.validationMessage);
if (validationMessages && validationMessages.length > 0) {
displayValidationMessage = true;
}
Expand Down

0 comments on commit 935dc76

Please sign in to comment.