Skip to content

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

:bug: Virtual reference cannot jump on mobile Fix https://github.com/siyuan-note/siyuan/issues/14565 (#14566)

Jeffrey Chen7b6a28911fc5
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 9c87a90b77..553b7cc816 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -2316,8 +2316,8 @@ export class WYSIWYG {
anchor: virtualRefElement.textContent,
excludeIDs: [blockElement.getAttribute("data-node-id")]
}, (response) => {
- checkFold(response.data[0], (zoomIn) => {
- openMobileFileById(protyle.app, response.data[0], zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);
+ checkFold(response.data.refDefs[0].refID, (zoomIn) => {
+ openMobileFileById(protyle.app, response.data.refDefs[0].refID, zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);
activeBlur();
hideKeyboardToolbar();
});