瀏覽代碼

:art: https://github.com/siyuan-note/siyuan/issues/11251

Vanessa 1 年之前
父節點
當前提交
6f741b53cf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/protyle/render/av/relation.ts

+ 1 - 1
app/src/protyle/render/av/relation.ts

@@ -362,7 +362,7 @@ export const setRelationCell = (protyle: IProtyle, nodeElement: HTMLElement, tar
         cellElements[0] = nodeElement.querySelector(`.av__row[data-id="${rowElement.dataset.id}"] .av__cell[data-col-id="${cellElements[0].dataset.colId}"]`) as HTMLElement;
     }
     const newValue:IAVCellRelationValue = {blockIDs: [], contents: []};
-    menuElement.querySelectorAll('[data-type="setRelationCell"]').forEach(item => {
+    menuElement.querySelectorAll('[draggable="true"]').forEach(item => {
         const id = item.getAttribute("data-id");
         newValue.blockIDs.push(id);
         newValue.contents.push({