Skip to content

Commit 83a34c6

Browse files
committed
fix: cursor disappearing when hovering over buttons
1 parent 36dcfe2 commit 83a34c6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

frontend/src/ts/test/focus.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ export function set(foc: boolean, withCursor = false): void {
1414
Caret.stopAnimation();
1515
$("header").addClass("focus");
1616
$("footer").addClass("focus");
17-
if (!withCursor) $("body").css("cursor", "none");
18-
$("button").css("cursor", "none");
19-
$("a").css("cursor", "none");
17+
if (!withCursor) {
18+
$("body").css("cursor", "none");
19+
$("button").css("cursor", "none");
20+
$("a").css("cursor", "none");
21+
}
2022
$("main").addClass("focus");
2123
$("#bannerCenter").addClass("focus");
2224
$("#notificationCenter").addClass("focus");

0 commit comments

Comments
 (0)