mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 22:44:06 +01:00
This commit is contained in:
parent
84f884dff2
commit
5c57054eba
5 changed files with 34 additions and 31 deletions
|
|
@ -600,11 +600,12 @@ export const openMenuPanel = (options: {
|
|||
hideElements(["util"], options.protyle);
|
||||
} else if (!window.siyuan.menus.menu.element.classList.contains("fn__none")) {
|
||||
// 过滤面板先关闭过滤条件
|
||||
window.siyuan.menus.menu.remove();
|
||||
} else {
|
||||
closeCB?.();
|
||||
avPanelElement.remove();
|
||||
focusBlock(options.blockElement);
|
||||
setTimeout(() => {
|
||||
focusBlock(options.blockElement);
|
||||
}, Constants.TIMEOUT_TRANSITION); // 单选使用 enter 修改选项后会滚动
|
||||
}
|
||||
window.siyuan.menus.menu.remove();
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue