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 diff for VText nodes #697

Merged
merged 1 commit into from
Oct 12, 2019
Merged

Fix diff for VText nodes #697

merged 1 commit into from
Oct 12, 2019

Conversation

jstarry
Copy link
Member

@jstarry jstarry commented Oct 12, 2019

Fixes: #668

Problem

VText nodes are always appended to the parent element. This is bad because sometimes the text node should be inserted in the middle of the parent element's children.

Solution

Insert text nodes after previous_sibling if it exists

@jstarry jstarry merged commit 9bf627d into yewstack:master Oct 12, 2019
@jstarry jstarry deleted the issue-668 branch October 12, 2019 20:46
jstarry added a commit that referenced this pull request Oct 13, 2019
hgzimmerman pushed a commit to hgzimmerman/yew that referenced this pull request Oct 14, 2019
llebout pushed a commit to llebout/yew that referenced this pull request Jan 20, 2020
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.

Incorrect rendering with fragments
1 participant