We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c52de5c commit 55ee4bcCopy full SHA for 55ee4bc
src/diff/index.js
@@ -1,5 +1,5 @@
1
import { EMPTY_OBJ } from '../constants';
2
-import { Component } from '../component';
+import { Component, getDomSibling } from '../component';
3
import { Fragment } from '../create-element';
4
import { diffChildren } from './children';
5
import { diffProps, setProperty } from './props';
@@ -410,7 +410,9 @@ function diffElementNodes(
410
isSvg && nodeType !== 'foreignObject',
411
excessDomChildren,
412
commitQueue,
413
- dom.firstChild,
+ excessDomChildren
414
+ ? excessDomChildren[0]
415
+ : oldVNode._children && getDomSibling(oldVNode, 0),
416
isHydrating
417
);
418
0 commit comments