mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 11:30:42 +08:00
fix: 拖拽块的时候错误地高亮了对应的嵌入块内容 (#13981)
fix https://github.com/siyuan-note/siyuan/issues/13948
This commit is contained in:
parent
12842e50d6
commit
f0e3ba42bb
@ -114,7 +114,13 @@ export class Gutter {
|
|||||||
selectIds.push(itemId);
|
selectIds.push(itemId);
|
||||||
}));
|
}));
|
||||||
if (!selectedIncludeGutter) {
|
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) {
|
if (gutterNodeElement) {
|
||||||
selectElements.forEach((item => {
|
selectElements.forEach((item => {
|
||||||
item.classList.remove("protyle-wysiwyg--select");
|
item.classList.remove("protyle-wysiwyg--select");
|
||||||
|
Loading…
Reference in New Issue
Block a user