Skip to content

Commit

Permalink
Update libs/mep/dc0944/aside/aside.js
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Bogos <146744221+robert-bogos@users.noreply.github.com>
  • Loading branch information
ivanvatadobe and robert-bogos authored May 14, 2024
1 parent d8fc08c commit 5f77047
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/mep/dc0944/aside/aside.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ function linkSectionToModuleStep(el) {
}

function editCtaToModuleClick(el) {
const ctas = el.querySelectorAll('a');
ctas.forEach((cta) => {
el.querySelectorAll('a').forEach((cta) => {
if (cta.href.toLowerCase().includes('#module')) {
cta.addEventListener('click', (e) => {
e.preventDefault();
Expand Down

0 comments on commit 5f77047

Please sign in to comment.