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

✨ DOM events triggered on clone fixed #1185

Merged
merged 15 commits into from
Feb 17, 2023
Merged

✨ DOM events triggered on clone fixed #1185

merged 15 commits into from
Feb 17, 2023

Conversation

samarsault
Copy link
Contributor

@samarsault samarsault commented Feb 15, 2023

What is this?

In #1165, we refactored our DOM cloning logic. We moved to creating a clone and adding it to a cloned node of document. This, however triggers DOM events like connectedCallback which mess up the user DOM. This PR moves from keeping the clone node in a document to a DocumentFragment

@samarsault samarsault marked this pull request as draft February 15, 2023 14:53
@samarsault samarsault changed the title DOM event on clone fix DOM events triggered on clone fixed Feb 15, 2023
@samarsault samarsault marked this pull request as ready for review February 15, 2023 16:46
@itsjwala itsjwala changed the title DOM events triggered on clone fixed 🐛 DOM events triggered on clone fixed Feb 17, 2023
@itsjwala itsjwala changed the title 🐛 DOM events triggered on clone fixed ✨ DOM events triggered on clone fixed Feb 17, 2023
@itsjwala itsjwala added the ✨ enhancement New feature or request label Feb 17, 2023
@itsjwala itsjwala merged commit 66b4d4d into master Feb 17, 2023
@itsjwala itsjwala deleted the dom-events-fix branch February 17, 2023 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants