Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix #809 incorrect ViewNode prev and next siblings after appendChild/insertBefore#811

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

delaneyb
Copy link
Contributor

Fixes#809

@delaneybdelaneyb mentioned this pull requestMar 5, 2021
@rigor789
Copy link
Member

Nice find@delaneyb! Could you add a test similar to this

test('insertBefore sets the correct node relations',()=>{
letnode=newViewNode()
letchildNode=newViewNode()
letrefNode=newViewNode()
node.childNodes=[refNode]
refNode.parentNode=node
node.insertBefore(childNode,refNode)
expect(node.childNodes.length).toBe(2)
expect(childNode.parentNode).toEqual(node)
expect(childNode.prevSibling).toBeFalsy()
expect(childNode.nextSibling).toEqual(refNode)
expect(refNode.prevSibling).toEqual(childNode)
expect(refNode.nextSibling).toBeFalsy()
})
to assert thechildNode.prevSibling.nextSibling is set? I can do it a bit later as well, so no problem if you can't - will try to get to merging/releasing a patch sometime this week.

delaneyb reacted with thumbs up emoji

@rigor789
Copy link
Member

Awesome, thanks!

@rigor789rigor789 merged commit5156f20 intonativescript-vue:masterMar 10, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@rigor789rigor789rigor789 approved these changes

Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

ViewNode insertBefore and appendChild issues
2 participants
@delaneyb@rigor789

[8]ページ先頭

©2009-2025 Movatter.jp