fix select dropdown issue (#1718)

This commit is contained in:
Shuchang Zheng
2025-02-05 01:27:49 +08:00
committed by GitHub
parent 9b5c4f018f
commit 0c0a368c64

View File

@@ -2085,11 +2085,15 @@ async function addIncrementalNodeToMap(parentNode, childrenNode) {
newNodesTreeList = window.globalDomDepthMap.get(depth);
}
for (const child of childrenNode) {
const [_, newNodeTree] = buildElementTree(child, "", true);
if (newNodeTree.length > 0) {
newNodesTreeList.push(...newNodeTree);
try {
for (const child of childrenNode) {
const [_, newNodeTree] = buildElementTree(child, "", true);
if (newNodeTree.length > 0) {
newNodesTreeList.push(...newNodeTree);
}
}
} catch (error) {
console.error("Error building incremental element node:", error);
}
window.globalDomDepthMap.set(depth, newNodesTreeList);
}