Merge commit '9c979bc45c2f9ea34436e6f02b8175ca643858ef' into def_releases_2022052310292323_ali-lowcode_ali-lowcode-engine/1.0.82

This commit is contained in:
tbfed 2022-05-25 14:44:50 +08:00
commit 5f7db9d10a

View File

@ -551,7 +551,7 @@ function cacheReactKey(el: Element): Element {
}
REACT_KEY = Object.keys(el).find(
(key) => key.startsWith('__reactInternalInstance$') || key.startsWith('__reactFiber$'),
);
) || '';
if (!REACT_KEY && (el as HTMLElement).parentElement) {
return cacheReactKey((el as HTMLElement).parentElement!);
}