mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
This commit is contained in:
parent
963cf9a38b
commit
d597d6f290
1 changed files with 7 additions and 1 deletions
|
|
@ -320,7 +320,13 @@ export const bindMenuKeydown = (event: KeyboardEvent) => {
|
|||
}
|
||||
}
|
||||
if (actionMenuElement) {
|
||||
actionMenuElement.classList.add("b3-menu__item--current");
|
||||
if (actionMenuElement.classList.contains("b3-menu__item")) {
|
||||
actionMenuElement.classList.add("b3-menu__item--current");
|
||||
}
|
||||
const inputElement = actionMenuElement.querySelector(":scope > .b3-text-field") as HTMLInputElement;
|
||||
if (inputElement) {
|
||||
inputElement.focus();
|
||||
}
|
||||
actionMenuElement.classList.remove("b3-menu__item--show");
|
||||
const parentRect = actionMenuElement.parentElement.getBoundingClientRect();
|
||||
const actionMenuRect = actionMenuElement.getBoundingClientRect();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue