Skip to content

Conversation

zhangzhonghe
Copy link
Member

@zhangzhonghe zhangzhonghe commented Oct 12, 2022

#6852)

fix #6852

Before | After

@zhangzhonghe zhangzhonghe marked this pull request as ready for review October 12, 2022 07:23
}
// #6852
// also inherit for text nodes
if (c2.type === Text && !c2.el) {
Copy link
Member

Choose a reason for hiding this comment

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

I feel those codes could be refactored as:

if(!c2.el)( if((__DEV__ && c2.type === Comment)||c2.type === Text){ c2.el = c1.el } }
@yyx990803 yyx990803 merged commit 4049ffc into vuejs:main Nov 10, 2022
chrislone pushed a commit to chrislone/core that referenced this pull request Feb 4, 2023
zhangzhonghe added a commit to zhangzhonghe/core that referenced this pull request Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants