You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the experimental view transitions API, any JavaScript defined on a page does not run.
Click on "Another Page"
View Transition navigation will happen
alert will not fire
What's the expected result?
Click on "Another Page"
View Transition navigation will happen
alert fires
If you disable the View Transition (or hit /another-page first), this works as expected. Perhaps this isn't a bug and there's simply an event that should be listened to to accomplish this?
What version of
astro
are you using?2.9.1
Are you using an SSR adapter? If so, which one?
n/a
What package manager are you using?
npm
What operating system are you using?
Windows
What browser are you using?
Chrome
Describe the Bug
When using the experimental view transitions API, any JavaScript defined on a page does not run.
alert
will not fireWhat's the expected result?
alert
firesIf you disable the View Transition (or hit
/another-page
first), this works as expected. Perhaps this isn't a bug and there's simply an event that should be listened to to accomplish this?Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-ut1vqr
Participation
The text was updated successfully, but these errors were encountered: