diff options
| author | Eltrac <hi@guhub.cn> | 2025-04-01 11:04:58 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-04-01 11:04:58 +0800 |
| commit | 2c08db1b47d2c85dae11c66d97962e7f375262a7 (patch) | |
| tree | d34c47eb252dfc90fd5ab84b760af4dbf7220c6a | |
| parent | c582880e3b11d86fc6943455570b805c88037bbb (diff) | |
fix: incorrectly attaching event listener
| -rw-r--r-- | layouts/partials/components/global-search.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/components/global-search.html b/layouts/partials/components/global-search.html index 0b929b0a..c1051ee4 100644 --- a/layouts/partials/components/global-search.html +++ b/layouts/partials/components/global-search.html @@ -107,7 +107,7 @@ }); const searchInstruction = document.getElementById("search-instruction"); - window.addEventListener("click", (event) => { + searchInstruction.addEventListener("click", (event) => { turnOn(); }); })(); |
