|
@@ -2463,8 +2463,8 @@ export function invokeVNodeHook(
|
|
|
*
|
|
*
|
|
|
* #2080
|
|
* #2080
|
|
|
* Inside keyed `template` fragment static children, if a fragment is moved,
|
|
* Inside keyed `template` fragment static children, if a fragment is moved,
|
|
|
- * the children will always moved so that need inherit el form previous nodes
|
|
|
|
|
- * to ensure correct moved position.
|
|
|
|
|
|
|
+ * the children will always be moved. Therefore, in order to ensure correct move
|
|
|
|
|
+ * position, el should be inherited from previous nodes.
|
|
|
*/
|
|
*/
|
|
|
export function traverseStaticChildren(n1: VNode, n2: VNode, shallow = false) {
|
|
export function traverseStaticChildren(n1: VNode, n2: VNode, shallow = false) {
|
|
|
const ch1 = n1.children
|
|
const ch1 = n1.children
|