mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 06:54:08 +01:00
🎨 Clean code
This commit is contained in:
parent
26984f39df
commit
94d3ccfa9f
12 changed files with 39 additions and 39 deletions
|
|
@ -532,7 +532,7 @@ export const focusBlock = (element: Element, parentElement?: HTMLElement, toStar
|
|||
range.collapse(true);
|
||||
setRange = true;
|
||||
} else if (type === "NodeAttributeView") {
|
||||
const cursorElement = element.querySelector(".av__cursor")
|
||||
const cursorElement = element.querySelector(".av__cursor");
|
||||
if (cursorElement) {
|
||||
range.setStart(cursorElement.firstChild, 0);
|
||||
setRange = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue