Skip to content

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

:bug: Hide stale mobile text toolbar after keyboard dismissal https://github.com/siyuan-note/siyuan/issues/18750

Daniel59940653fcbb
diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.ts
index fae6dc9941..becb5c0dc6 100644
--- a/app/src/mobile/util/keyboardToolbar.ts
+++ b/app/src/mobile/util/keyboardToolbar.ts
@@ -728,7 +728,11 @@ export const hideKeyboardToolbarByApp = () => {
hideKeyboardToolbar();
const editor = getCurrentEditor();
const selection = getSelection();
- if (!editor || !selection || selection.rangeCount === 0 || selection.isCollapsed) {
+ if (!editor) {
+ return;
+ }
+ hideElements(["util"], editor.protyle);
+ if (!selection || selection.rangeCount === 0 || selection.isCollapsed) {
return;
}
const range = selection.getRangeAt(0);