diff --git a/frontend/src/ts/modals/google-sign-up.ts b/frontend/src/ts/modals/google-sign-up.ts index fe759e985..0a32a472f 100644 --- a/frontend/src/ts/modals/google-sign-up.ts +++ b/frontend/src/ts/modals/google-sign-up.ts @@ -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"); diff --git a/frontend/src/ts/modals/quote-submit.ts b/frontend/src/ts/modals/quote-submit.ts index 866c63e4b..b4f6e485f 100644 --- a/frontend/src/ts/modals/quote-submit.ts +++ b/frontend/src/ts/modals/quote-submit.ts @@ -52,6 +52,7 @@ async function submitQuote(): Promise { export async function show(showOptions: ShowOptions): Promise { void modal.show({ ...showOptions, + mode: "dialog", focusFirstInput: true, afterAnimation: async () => { CaptchaController.render( diff --git a/frontend/src/ts/modals/user-report.ts b/frontend/src/ts/modals/user-report.ts index df963f4f7..864d9b2eb 100644 --- a/frontend/src/ts/modals/user-report.ts +++ b/frontend/src/ts/modals/user-report.ts @@ -30,6 +30,7 @@ export async function show(options: ShowOptions): Promise { } void modal.show({ + mode: "dialog", focusFirstInput: true, beforeAnimation: async (modalEl) => { CaptchaController.render(