Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent client-side navigation for method="dialog" #9327

Merged
merged 4 commits into from
Dec 6, 2023
Merged

Prevent client-side navigation for method="dialog" #9327

merged 4 commits into from
Dec 6, 2023

Conversation

doseofted
Copy link
Contributor

Changes

Testing

Added new E2E test confirming new requests are not sent when modal is opened and then closed using a button/form.

Docs

Documentation does not need to be updated. Behavior should now match that of Astro 3.

Copy link

changeset-bot bot commented Dec 5, 2023

🦋 Changeset detected

Latest commit: edc268d

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added pkg: astro Related to the core `astro` package (scope) pr: docs A PR that includes documentation for review labels Dec 5, 2023
@doseofted doseofted changed the title Navigation prevented with View Transitions when form method is "dialog" Fix to prevent navigation with View Transitions when form method is "dialog" Dec 5, 2023
Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for the PR!

@natemoo-re natemoo-re changed the title Fix to prevent navigation with View Transitions when form method is "dialog" Prevent client-side navigation for method="dialog" Dec 6, 2023
@natemoo-re natemoo-re merged commit 3878a91 into withastro:main Dec 6, 2023
5 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) pr: docs A PR that includes documentation for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Closing dialog with form method causes page fetch (reload) with View Transitions
2 participants