mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
79812f22b6
commit
41f3bf669b
4 changed files with 7 additions and 12 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue