Match-id-d742d2229ce0f137b3281986d7894b39b4201860
This commit is contained in:
parent
49fac0e85f
commit
31a9a329bd
|
@ -354,13 +354,12 @@ function diffArrayNodesHandler(
|
|||
rightIdx - leftIdx === newChildren.length) {
|
||||
isDirectAdd = true;
|
||||
}
|
||||
const isAddition = parentNode.tag === DomPortal || !parentNode.isCreated;
|
||||
for (; leftIdx < rightIdx; leftIdx++) {
|
||||
newNode = getNewNode(parentNode, newChildren[leftIdx], null);
|
||||
|
||||
if (newNode !== null) {
|
||||
if (parentNode.tag === DomPortal) {
|
||||
FlagUtils.setAddition(newNode);
|
||||
} else if (!parentNode.isCreated) {
|
||||
if (isAddition) {
|
||||
FlagUtils.setAddition(newNode);
|
||||
}
|
||||
if (isDirectAdd) {
|
||||
|
|
Loading…
Reference in New Issue