diff --git a/packages/astro/components/ViewTransitions.astro b/packages/astro/components/ViewTransitions.astro index 5c7ffc8df362..05911fca7df4 100644 --- a/packages/astro/components/ViewTransitions.astro +++ b/packages/astro/components/ViewTransitions.astro @@ -54,7 +54,7 @@ const { fallback = 'animate' } = Astro.props; document.addEventListener('click', (ev) => { let link = ev.target; if (ev.composed) { - link = ev.composedPath()[0]; + link = ev.composedPath()[0]; } if (link instanceof Element) { link = link.closest('a, area');