diff --git a/_layouts/calendar.html b/_layouts/calendar.html index 5f0ddf23b4..742a1ab1ef 100644 --- a/_layouts/calendar.html +++ b/_layouts/calendar.html @@ -76,14 +76,14 @@
{% if page.previous %} - < Previous + < Previous {% else %} Previous {% endif %}
{% if page.next %} - Next > + Next > {% else %} Next > {% endif %} @@ -556,8 +556,11 @@

Connect with the community

const clickWasInsideCard = detailsCard !== null; if (!clickWasInsideCard) { hideEventDetails(currentlyVisibleDetails); - const eventNameLinkClassName = 'events--calendar--body--week--day--event--name--anchor'; - if (!e.target.classList.contains(eventNameLinkClassName)) { + const allowableAnchorClassNames = [ + 'events--calendar--head--prev-next--anchor', + 'events--calendar--body--week--day--event--name--anchor', + ]; + if (!allowableAnchorClassNames.some(className => e.target.classList.contains(className))) { // If an event name was NOT clicked then prevent the default action. // Otherwise allow the navigation to the clicked event to be performed. event.preventDefault();