mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-28 19:08:32 +08:00
fix(modals): extra captcha popup appearing below some modals
This commit is contained in:
parent
bdc19de2ec
commit
dc005aba1b
3 changed files with 3 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ let signedInUser: UserCredential | undefined = undefined;
|
|||
|
||||
function show(credential: UserCredential): void {
|
||||
void modal.show({
|
||||
mode: "dialog",
|
||||
focusFirstInput: true,
|
||||
beforeAnimation: async () => {
|
||||
CaptchaController.reset("googleSignUpModal");
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ async function submitQuote(): Promise<void> {
|
|||
export async function show(showOptions: ShowOptions): Promise<void> {
|
||||
void modal.show({
|
||||
...showOptions,
|
||||
mode: "dialog",
|
||||
focusFirstInput: true,
|
||||
afterAnimation: async () => {
|
||||
CaptchaController.render(
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ export async function show(options: ShowOptions): Promise<void> {
|
|||
}
|
||||
|
||||
void modal.show({
|
||||
mode: "dialog",
|
||||
focusFirstInput: true,
|
||||
beforeAnimation: async (modalEl) => {
|
||||
CaptchaController.render(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue