mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 00:48:16 +00:00
fix: 修复画布上无法选中节点的 bug
This commit is contained in:
parent
91252fa1b0
commit
9c979bc45c
@ -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!);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user