🚨
This commit is contained in:
parent
03a0de560e
commit
dc2536cbad
1 changed files with 2 additions and 2 deletions
|
@ -305,9 +305,9 @@ ${cell.color ? `color:${cell.color};` : ""}">${text}</div>`;
|
|||
}
|
||||
if (getSelection().rangeCount > 0) {
|
||||
// 修改表头后光标重新定位
|
||||
const range = getSelection().getRangeAt(0)
|
||||
const range = getSelection().getRangeAt(0);
|
||||
if (!hasClosestByClassName(range.startContainer, "av__title")) {
|
||||
const blockElement = hasClosestBlock(range.startContainer)
|
||||
const blockElement = hasClosestBlock(range.startContainer);
|
||||
if (blockElement && e.isSameNode(blockElement)) {
|
||||
focusBlock(e);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue