Skip to content

Commit 832714d

Browse files
committed
Focus on the first child marker when cluster is opened
1 parent 378f6d4 commit 832714d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pcd-website/src/components/MapView.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,9 @@ onMounted(async () => {
414414
insertAfter = el;
415415
}
416416
});
417+
// Move focus to the first child marker so Tab continues from there
418+
const firstChildEl = e.markers[0]?.getElement?.();
419+
firstChildEl?.focus();
417420
});
418421
419422
// Sliding window: pan just enough to keep focused markers in the safe zone

0 commit comments

Comments
 (0)