An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:iphone: 输入框判断改进
Vanessa85ad5f23338a
diff --git a/app/package.json b/app/package.jsonindex 935ffc73c1..42db239c65 100644--- a/app/package.json+++ b/app/package.json@@ -4,7 +4,7 @@"description": "Refactor your thinking","homepage": "https://b3log.org/siyuan","main": "./electron/main.js",- "packageManager": "[email protected]",+ "packageManager": "[email protected]","scripts": {"lint": "eslint . --fix --cache","dev": "webpack --mode development",diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.tsindex 02e082cc6d..facdb0abeb 100644--- a/app/src/mobile/index.ts+++ b/app/src/mobile/index.ts@@ -100,7 +100,9 @@ class App {}const wysisygElement = hasClosestByClassName(event.target, "protyle-wysiwyg", true);let editElement: HTMLElement;- if (["INPUT", "TEXTAREA"].includes(event.target.tagName) && event.target.getAttribute("readonly") !== "readonly") {+ if ((event.target.tagName === "TEXTAREA" ||+ (event.target.tagName === "INPUT" && ["email", "number", "password", "search", "tel", "text", "url", ""].includes(event.target.getAttribute("type")))) &&+ event.target.getAttribute("readonly") !== "readonly") {editElement = event.target;} else if (wysisygElement && wysisygElement.getAttribute("data-readonly") === "false") {editElement = hasClosestByAttribute(event.target, "contenteditable", "true") as HTMLElement;