Vanessa 2025-04-28 17:16:00 +08:00
parent 79812f22b6
commit 41f3bf669b
4 changed files with 7 additions and 12 deletions

View file

@ -139,7 +139,6 @@ export const openMenuPanel = (options: {
cellElements: options.cellElements,
blockElement: options.blockElement
});
(avPanelElement.querySelector(".b3-menu__item") as HTMLButtonElement).focus();
setTimeout(() => {
setPosition(menuElement, cellRect.left, cellRect.bottom, cellRect.height);
}, Constants.TIMEOUT_LOAD); // 等待加载
@ -152,7 +151,6 @@ export const openMenuPanel = (options: {
});
} else if (options.type === "rollup") {
bindRollupData({protyle: options.protyle, data, menuElement});
(avPanelElement.querySelector(".b3-menu__item") as HTMLButtonElement).focus();
}
if (["select", "date", "relation", "rollup"].includes(options.type)) {
const inputElement = menuElement.querySelector("input");