mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 22:58:15 +00:00
Merge commit '9c979bc45c2f9ea34436e6f02b8175ca643858ef' into def_releases_2022052310292323_ali-lowcode_ali-lowcode-engine/1.0.82
This commit is contained in:
commit
5f7db9d10a
@ -551,7 +551,7 @@ function cacheReactKey(el: Element): Element {
|
|||||||
}
|
}
|
||||||
REACT_KEY = Object.keys(el).find(
|
REACT_KEY = Object.keys(el).find(
|
||||||
(key) => key.startsWith('__reactInternalInstance$') || key.startsWith('__reactFiber$'),
|
(key) => key.startsWith('__reactInternalInstance$') || key.startsWith('__reactFiber$'),
|
||||||
);
|
) || '';
|
||||||
if (!REACT_KEY && (el as HTMLElement).parentElement) {
|
if (!REACT_KEY && (el as HTMLElement).parentElement) {
|
||||||
return cacheReactKey((el as HTMLElement).parentElement!);
|
return cacheReactKey((el as HTMLElement).parentElement!);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user