Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/15831

Vanessa72c84f5f3dad
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index 9432463077..9d7e46d396 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -496,7 +496,7 @@ export const genSearch = (app: App, config: Config.IUILayoutTabSearchConfig, ele
} else if (target.id === "searchInclude") {
event.stopPropagation();
event.preventDefault();
- if (["", "disabled"].includes(target.getAttribute("disabled"))) {
+ if (target.hasAttribute("disabled")) {
return;
}
const svgElement = target.firstElementChild;