mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 07:46:15 +08:00
preventing default when cookie poopup is visible
This commit is contained in:
parent
46e0c5c960
commit
986de64359
|
@ -33,7 +33,9 @@ export function show(): void {
|
|||
.stop(true, true)
|
||||
.css("opacity", 0)
|
||||
.removeClass("hidden")
|
||||
.animate({ opacity: 1 }, 100);
|
||||
.animate({ opacity: 1 }, 100, () => {
|
||||
$("#wordsInput").blur();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -87,3 +89,9 @@ $("#cookiePopup .acceptSelected").on("click", () => {
|
|||
$("#cookiePopup .openSettings").on("click", () => {
|
||||
showSettings();
|
||||
});
|
||||
|
||||
$(document).on("keypress", (e) => {
|
||||
if (!$("#cookiePopupWrapper").hasClass("hidden")) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue