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: Vivian A Goodrich <101133187+vgoodric@users.noreply.github.com>
  • Loading branch information
ivanvatadobe and vgoodric authored May 13, 2024
1 parent dcecf37 commit 91fb052
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libs/mep/dc0944/aside/aside.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,8 @@ function editCtaToModuleClick(el) {
if (cta.href.toLowerCase().includes('#module')) {
cta.addEventListener('click', (e) => {
e.preventDefault();
const moduleCta = document.querySelectorAll('.CTAButtons');
window.scrollTo(0, 0);
if (moduleCta.length) {
moduleCta[0].click();
}
document.querySelector('.CTAButtons')?.click();
});
}
});
Expand Down

0 comments on commit 91fb052

Please sign in to comment.