Skip to content
This repository was archived by the owner on Aug 14, 2021. It is now read-only.

Commit 2a685c2

Browse files
committed
fix: Search clicks again...
1 parent 391183c commit 2a685c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"LICENSE"
1010
],
1111
"scripts": {
12-
"webpack": "webpack",
13-
"build": "npm run webpack",
12+
"build": "webpack",
1413
"lint": "prettier --check .",
1514
"prepublishOnly": "npm run build"
1615
},

src/default/assets/js/src/typedoc/components/Search.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,13 @@ export function initSearch() {
6161
results.addEventListener("mousedown", () => (resultClicked = true));
6262
results.addEventListener("mouseup", () => {
6363
resultClicked = false;
64-
field.blur();
64+
searchEl.classList.remove("has-focus");
6565
});
6666

6767
field.addEventListener("focus", () => searchEl.classList.add("has-focus"));
6868
field.addEventListener("blur", () => {
6969
if (!resultClicked) {
70+
resultClicked = false;
7071
searchEl.classList.remove("has-focus");
7172
}
7273
});

0 commit comments

Comments
 (0)