Skip to content

Fix failed to removeChild on Node bug #2164

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

Merged
merged 2 commits into from
Jan 9, 2023
Merged

Fix failed to removeChild on Node bug #2164

merged 2 commits into from
Jan 9, 2023

Conversation

RobinMalfait
Copy link
Member

This PR fixes a crash when calling removeChild with a value other than a Node.

Fixes: #2151

@vercel
Copy link

vercel bot commented Jan 9, 2023

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

Name Status Preview Comments Updated
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 9, 2023 at 11:08AM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 9, 2023 at 11:08AM (UTC)

Verified

This commit was signed with the committer’s verified signature.
RobinMalfait Robin Malfait
Let's introduce a bit more defensive code to make sure that the code
doesn't crash when we don't pass a `Node` to `removeChild`

Verified

This commit was signed with the committer’s verified signature.
RobinMalfait Robin Malfait
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.

Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
1 participant