mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
fix: 拖拽块的时候错误地高亮了对应的嵌入块内容 (#13981)
fix https://github.com/siyuan-note/siyuan/issues/13948
This commit is contained in:
parent
12842e50d6
commit
f0e3ba42bb
1 changed files with 7 additions and 1 deletions
|
@ -114,7 +114,13 @@ export class Gutter {
|
|||
selectIds.push(itemId);
|
||||
}));
|
||||
if (!selectedIncludeGutter) {
|
||||
const gutterNodeElement = protyle.wysiwyg.element.querySelector(`[data-node-id="${gutterId}"]`);
|
||||
let gutterNodeElement;
|
||||
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${gutterId}"]`)).find(item => {
|
||||
if (!isInEmbedBlock(item) && this.isMatchNode(item)) {
|
||||
gutterNodeElement = item;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
if (gutterNodeElement) {
|
||||
selectElements.forEach((item => {
|
||||
item.classList.remove("protyle-wysiwyg--select");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue