{% 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();