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 unknown previous sibling error #194

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

MarcusLongmuir
Copy link
Collaborator

@MarcusLongmuir MarcusLongmuir commented Aug 16, 2024

This PR fixes an issue where a series of mutations could throw errors because the previous sibling that was referenced in the MutationRecord from the MutationObserver in the runner would not actually be a sibling of the nodes being added (nor would it be a child of the target / parent).

The fix is to use the current (eventual state) previous sibling of the first addedNode.


What kind of changes does your PR introduce? (check at least one)

  • Bugfix

Does your PR introduce a breaking change? (check one)

  • No

Does your PR fulfill the following requirements?

  • All tests are passing

@TheCodeTherapy TheCodeTherapy merged commit 23a9209 into main Aug 19, 2024
8 checks passed
@TheCodeTherapy TheCodeTherapy deleted the bugfix/unknown-previous-sibling branch August 19, 2024 10:07
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