Merge pull request #2888 from Zeral-Zhang/develop

fix(react-simulator-renderer): detached node has children
This commit is contained in:
唐澜 2024-01-26 17:51:16 +08:00 committed by GitHub
commit dfe6878028
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,7 @@ function getNodeInstance(fiberNode: any, specId?: string): IPublicTypeNodeInstan
function checkInstanceMounted(instance: any): boolean {
if (isElement(instance)) {
return instance.parentElement != null;
return instance.parentElement != null && window.document.contains(instance);
}
return true;
}