Skip to content

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

:bug: Prevent task checkbox taps from reopening the mobile keyboard https://github.com/siyuan-note/siyuan/issues/19014

Daniel592368f8d287
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 4456215025..7181d24c4e 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -4816,6 +4816,12 @@ export class WYSIWYG {
} else {
if (actionElement.classList.contains("protyle-action--task")) {
if (!protyle.disabled) {
+ /// #if MOBILE
+ event.preventDefault();
+ if (document.getElementById("keyboardToolbar")?.classList.contains("fn__none")) {
+ activeBlur(true);
+ }
+ /// #endif
toggleTaskListItem(protyle, actionElement.parentElement);
}
} else if (window.siyuan.config.editor.listItemDotNumberClickFocus) {