Skip to content

Commit 79e7339

Browse files
committed
🐛 #16762
1 parent cc79d39 commit 79e7339

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/protyle/util/selection.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,9 @@ export const focusBlock = (element: Element, parentElement?: HTMLElement, toStar
671671
});
672672
}
673673
if (cursorElement) {
674+
if (cursorElement.getAttribute("contenteditable") === "false") {
675+
return false;
676+
}
674677
if (cursorElement.tagName === "TABLE") {
675678
if (toStart) {
676679
cursorElement = cursorElement.querySelector("th, td");

0 commit comments

Comments
 (0)