fix auto completion bug (#2152)
Co-authored-by: lawyzheng <lawyzheng1106@gmail.com>
This commit is contained in:
@@ -731,7 +731,8 @@ function isInteractable(element, hoverStylesMap) {
|
|||||||
tagName === "li" ||
|
tagName === "li" ||
|
||||||
tagName === "p" ||
|
tagName === "p" ||
|
||||||
tagName === "td" ||
|
tagName === "td" ||
|
||||||
tagName === "svg"
|
tagName === "svg" ||
|
||||||
|
tagName === "strong"
|
||||||
) {
|
) {
|
||||||
const elementCursor = getElementComputedStyle(element)?.cursor;
|
const elementCursor = getElementComputedStyle(element)?.cursor;
|
||||||
if (elementCursor === "pointer") {
|
if (elementCursor === "pointer") {
|
||||||
@@ -2388,6 +2389,8 @@ async function getIncrementElements(wait_until_finished = true) {
|
|||||||
);
|
);
|
||||||
newChild.children = child.children;
|
newChild.children = child.children;
|
||||||
children[i] = newChild;
|
children[i] = newChild;
|
||||||
|
} else {
|
||||||
|
children[i].interactable = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2421,6 +2424,8 @@ async function getIncrementElements(wait_until_finished = true) {
|
|||||||
);
|
);
|
||||||
newHead.children = treeHeadElement.children;
|
newHead.children = treeHeadElement.children;
|
||||||
treeHeadElement = newHead;
|
treeHeadElement = newHead;
|
||||||
|
} else {
|
||||||
|
treeHeadElement.interactable = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if the element is existed
|
// check if the element is existed
|
||||||
|
|||||||
Reference in New Issue
Block a user