Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/8889

Vanessab6470d18bb12
diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts
index b88194ae9c..3d9f205fef 100644
--- a/app/src/layout/dock/Files.ts
+++ b/app/src/layout/dock/Files.ts
@@ -352,7 +352,7 @@ export class Files extends Model {
selectElements.forEach((item: HTMLElement, index) => {
ghostElement.append(item.cloneNode(true));
item.style.opacity = "0.1";
- const itemNodeId = item.getAttribute("data-node-id") || "";
+ const itemNodeId = item.dataset.nodeId || item.dataset.path;
if (itemNodeId) {
ids += itemNodeId;
if (index < selectElements.length - 1) {