Skip to content

Commit dfe6878

Browse files
authored
Merge pull request alibaba#2888 from Zeral-Zhang/develop
fix(react-simulator-renderer): detached node has children
2 parents 6e89d4d + b29c539 commit dfe6878

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-simulator-renderer/src/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ function getNodeInstance(fiberNode: any, specId?: string): IPublicTypeNodeInstan
614614

615615
function checkInstanceMounted(instance: any): boolean {
616616
if (isElement(instance)) {
617-
return instance.parentElement != null;
617+
return instance.parentElement != null && window.document.contains(instance);
618618
}
619619
return true;
620620
}

0 commit comments

Comments
 (0)