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

Fix transition attributes on islands #8776

Merged
merged 2 commits into from
Oct 9, 2023
Merged

Fix transition attributes on islands #8776

merged 2 commits into from
Oct 9, 2023

Conversation

martrapp
Copy link
Member

@martrapp martrapp commented Oct 8, 2023

Changes

Transition attributes where set on astro-island and their contents.
data-astro-transition-persist attributes on nested elements cause the elements to be lost on transitions.
The fix ensures that transition attributes are not inserted on island content, only on the island itself.

Closes #8361

Testing

Added mocha test

Docs

n/a bug fix

@changeset-bot
Copy link

changeset-bot bot commented Oct 8, 2023

🦋 Changeset detected

Latest commit: c9c2e98

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 the pkg: astro Related to the core `astro` package (scope) label Oct 8, 2023
@martrapp martrapp merged commit 29cdfa0 into main Oct 9, 2023
13 checks passed
@martrapp martrapp deleted the mt/persist branch October 9, 2023 14:19
@astrobot-houston astrobot-houston mentioned this pull request Oct 9, 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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Astro 3.0 with ViewTransition and Vue component
2 participants