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: Mux-player childList observer behavior #1039

Closed
wants to merge 2 commits into from

Conversation

IlyaRazuvaev
Copy link

#1038

My fix is based on the assumption that this part of code is correct. And only top level children should be copied.
image

@IlyaRazuvaev IlyaRazuvaev requested a review from a team as a code owner December 11, 2024 07:31
Copy link

vercel bot commented Dec 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
elements-demo-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 1:52pm
elements-demo-svelte-kit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 1:52pm
elements-demo-vanilla ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 1:52pm

Copy link

vercel bot commented Dec 11, 2024

Someone is attempting to deploy a commit to the Mux Team on Vercel.

A member of the Team first needs to authorize it.

@luwes
Copy link
Contributor

luwes commented Dec 11, 2024

thanks for contribution!

does removing the subtree: true option of the MutationObserver also solve this issue?
that would be even better.

@IlyaRazuvaev
Copy link
Author

Thanks for the suggestion! This is much better.
Tested on my environment, the subtree nodes are not copied.

@luwes
Copy link
Contributor

luwes commented Dec 12, 2024

Thanks for making that change!

I just thought of another way which we improved recently,
muxinc/media-elements#49

I'm gonna add a commit here if it's possible with those changes.

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.

2 participants