fix: isolate calendar segment groups

This commit is contained in:
Keith Solomon
2026-07-30 14:19:58 -05:00
parent e464f841bf
commit 1af547536c
+10 -1
View File
@@ -64,6 +64,12 @@
}
function initOccurrenceGroups(root) {
if (root.__aaEventsOccurrenceGroupsInitialized) {
return;
}
root.__aaEventsOccurrenceGroupsInitialized = true;
var segments = root.querySelectorAll('[data-aa-events-occurrence]');
var groups = Object.create(null);
var segmentIndex;
@@ -73,7 +79,10 @@
var occurrenceKey = segment.getAttribute('data-aa-events-occurrence');
var group;
if (!occurrenceKey) {
if (
!occurrenceKey ||
segment.closest('[data-aa-events-calendar]') !== root
) {
continue;
}