fix: isolate calendar segment groups
This commit is contained in:
@@ -64,6 +64,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function initOccurrenceGroups(root) {
|
function initOccurrenceGroups(root) {
|
||||||
|
if (root.__aaEventsOccurrenceGroupsInitialized) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
root.__aaEventsOccurrenceGroupsInitialized = true;
|
||||||
|
|
||||||
var segments = root.querySelectorAll('[data-aa-events-occurrence]');
|
var segments = root.querySelectorAll('[data-aa-events-occurrence]');
|
||||||
var groups = Object.create(null);
|
var groups = Object.create(null);
|
||||||
var segmentIndex;
|
var segmentIndex;
|
||||||
@@ -73,7 +79,10 @@
|
|||||||
var occurrenceKey = segment.getAttribute('data-aa-events-occurrence');
|
var occurrenceKey = segment.getAttribute('data-aa-events-occurrence');
|
||||||
var group;
|
var group;
|
||||||
|
|
||||||
if (!occurrenceKey) {
|
if (
|
||||||
|
!occurrenceKey ||
|
||||||
|
segment.closest('[data-aa-events-calendar]') !== root
|
||||||
|
) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user