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: fix light dom slot forwarding bug #4452

Merged
merged 11 commits into from
Aug 21, 2024
Merged

Conversation

nolanlawson
Copy link
Collaborator

@nolanlawson nolanlawson commented Aug 8, 2024

Details

Fixes #4446, partially reverts #4258.

The main thing this PR does is revert us from the 252 behavior to the 250 behavior, while also adding additional code to ensure that disconnectedCallback fires correctly. The bulk of what you need to know is in the code comments.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🔬 Yes, it does include an observable change.

The ordering of disconnectedCallbacks firing in light DOM may change when using slot forwarding.

@nolanlawson nolanlawson marked this pull request as ready for review August 9, 2024 19:01
@nolanlawson nolanlawson requested a review from a team as a code owner August 9, 2024 19:01
@jmsjtu
Copy link
Member

jmsjtu commented Aug 9, 2024

I think this should also resolve #3731

@nolanlawson
Copy link
Collaborator Author

nolanlawson commented Aug 9, 2024

I think this should also resolve #3731

Unfortunately I tested it out, and it looks like #3731 is still not resolved by this PR. 😞

Copy link
Member

@ekashida ekashida left a comment

Choose a reason for hiding this comment

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

🤞

@nolanlawson nolanlawson merged commit bafc2ad into master Aug 21, 2024
11 checks passed
@nolanlawson nolanlawson deleted the nolan/light-dom-slot-bug-fix branch August 21, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Light DOM slot forwarding fails to render for duplicated slot names
3 participants