mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
6b8bd6e8f2
commit
3fafe0a1b6
1 changed files with 5 additions and 1 deletions
|
|
@ -858,7 +858,11 @@ ${genHintItemHTML(item)}
|
|||
focusBlock(nodeElement);
|
||||
} else if (nodeElement.classList.contains("av")) {
|
||||
avRender(nodeElement, protyle, () => {
|
||||
(nodeElement.querySelector(".av__title") as HTMLInputElement).focus();
|
||||
const titleHTMLElement = nodeElement.querySelector(".av__title") as HTMLInputElement;
|
||||
titleHTMLElement.focus();
|
||||
range.setStart(titleHTMLElement, 0);
|
||||
range.collapse(true);
|
||||
focusByRange(range);
|
||||
});
|
||||
} else {
|
||||
focusByWbr(nodeElement, range);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue