Skip to content

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

:bug: Allow swiping down from mobile upload menu items https://github.com/siyuan-note/siyuan/issues/19543

Daniel2190df02e883
diff --git a/app/src/menus/Menu.ts b/app/src/menus/Menu.ts
index 4713f5a548..d047b59900 100644
--- a/app/src/menus/Menu.ts
+++ b/app/src/menus/Menu.ts
@@ -195,7 +195,8 @@ export class Menu {
}
private canDragSheet(target: HTMLElement) {
- if (target.closest("input, textarea, select, [contenteditable=\"true\"]")) {
+ // 文件选择框覆盖上传菜单项,允许从该区域开始下拉关闭菜单。
+ if (target.closest("input:not([type=\"file\"]), textarea, select, [contenteditable=\"true\"]")) {
return false;
}
if (target.closest(".b3-menu__title")) {