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

clear private HOOK_ID as soon as hook is destroyed #3500

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

SteffenDE
Copy link
Collaborator

Fixes #3496.

When navigating from a sticky LiveView to another page that contains a hook on an element with the same id, morphdom would merge the old element into the new one and still find the old HOOK_ID in the element's DOM.private data, leading to the new hook not initializing properly.

Fixes #3496.

When navigating from a sticky LiveView to another page that contains
a hook on an element with the same id, morphdom would merge the old
element into the new one and still find the old HOOK_ID in the element's
DOM.private data, leading to the new hook not initializing properly.
@chrismccord chrismccord merged commit 82d0408 into main Nov 13, 2024
14 checks passed
@chrismccord
Copy link
Member

❤️❤️❤️🐥🔥

@chrismccord chrismccord deleted the sd-issue-3496 branch November 13, 2024 17:33
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.

No hook found for custom element
2 participants