This commit is contained in:
Vanessa 2023-01-19 21:44:00 +08:00
parent 01a3a14ef6
commit 77b29bde39

View file

@ -100,7 +100,7 @@ const hidePopover = (event: MouseEvent & { target: HTMLElement, path: HTMLElemen
// 移动到弹窗的 loading 元素上,但经过 settimeout 后 loading 已经被移除了
// https://ld246.com/article/1673596577519/comment/1673767749885#comments
let targetElement = event.target;
if (!targetElement.parentElement) {
if (!targetElement.parentElement && event.path[1]) {
targetElement = event.path[1];
}
const blockElement = hasClosestByClassName(targetElement, "block__popover", true);