-
Notifications
You must be signed in to change notification settings - Fork 30k
Open
Description
Link to the code that reproduces this issue
agadzik/v0-next-js-app-with-modal#1
To Reproduce
- Start the application in development mode (pnpm dev)
- Click on the "Open About (Modal)" button, notice the enter view transition animation trigger
- Press ESC or click outside of the modal to close it.
- Notice that the exit view transition animation does not trigger
Current vs. Expected behavior
When using the new <ViewTransition> element from react and the latest version of next, exit animations do not trigger when using router.back()
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:40 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6041
Available memory (MB): 49152
Available CPU cores: 14
Binaries:
Node: 20.18.3
npm: 10.8.2
Yarn: N/A
pnpm: 10.18.2
Relevant Packages:
next: 16.0.7 // Latest available version is detected (16.0.7).
eslint-config-next: N/A
react: 19.2.0
react-dom: 19.2.0
typescript: 5.0.2
Next.js Config:
output: N/AWhich area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local), Vercel (Deployed)
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels