This commit is contained in:
parent
947717c3f5
commit
ef8561cf18
1 changed files with 4 additions and 0 deletions
|
@ -538,6 +538,7 @@ export const focusBlock = (element: Element, parentElement?: HTMLElement, toStar
|
|||
range.collapse(true);
|
||||
setRange = true;
|
||||
} else if (type === "NodeAttributeView") {
|
||||
/// #if !MOBILE
|
||||
const cursorElement = element.querySelector(".av__cursor");
|
||||
if (cursorElement) {
|
||||
range.setStart(cursorElement.firstChild, 0);
|
||||
|
@ -545,6 +546,9 @@ export const focusBlock = (element: Element, parentElement?: HTMLElement, toStar
|
|||
} else {
|
||||
return false;
|
||||
}
|
||||
/// #else
|
||||
return false;
|
||||
/// #endif
|
||||
}
|
||||
if (setRange) {
|
||||
focusByRange(range);
|
||||
|
|
Loading…
Add table
Reference in a new issue