Closing dialog with form method causes page fetch (reload) with View Transitions #9320
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: view transitions
Related to the View Transitions feature (scope)
help wanted
Please help with this issue!
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When View Transitions are active in an Astro 4 project, closing a dialog using a
<form method="dialog">
causes a page to be fetched again instead of closing the dialog (of course Astro 4 was just released an hour ago so I expect some bugs 🙂).When that Astro project is deployed with Vercel, that refetch fails with HTTP error 405 (and the page content is replaced with the pathname).
What's the expected result?
Forms with a method of "dialog" should not send a network request or page navigation.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-m3pdqc?file=src%2Fpages%2Findex.astro%3AL9
Participation
The text was updated successfully, but these errors were encountered: