From 72c84f5f3dadef52caf418f7f2df7bcccc56c6ef Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 12 Sep 2025 17:13:30 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/15831 --- app/src/search/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/search/util.ts b/app/src/search/util.ts index 943246307..9d7e46d39 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;