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: Fixed a bug where some nodes could be skipped after converting an element to a block #42

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

davisagli
Copy link
Member

This is the old "don't mutate a list while iterating over it" bug. Using Array.from creates a new list of the children which will not be mutated when the DOM is later modified.

@davisagli davisagli requested a review from ericof November 20, 2023 20:51
@davisagli davisagli merged commit 03f7b20 into main Nov 20, 2023
2 checks passed
@davisagli davisagli deleted the fix-skipped-elements branch November 20, 2023 20:54
Copy link
Member

@ericof ericof left a comment

Choose a reason for hiding this comment

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

LGTM

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