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;