Skip to content

Commit

Permalink
fix(modals): extra captcha popup appearing below some modals
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Apr 9, 2024
1 parent bdc19de commit dc005ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/ts/modals/google-sign-up.ts
Expand Up @@ -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");
Expand Down
1 change: 1 addition & 0 deletions frontend/src/ts/modals/quote-submit.ts
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions frontend/src/ts/modals/user-report.ts
Expand Up @@ -30,6 +30,7 @@ export async function show(options: ShowOptions): Promise<void> {
}

void modal.show({
mode: "dialog",
focusFirstInput: true,
beforeAnimation: async (modalEl) => {
CaptchaController.render(
Expand Down

0 comments on commit dc005ab

Please sign in to comment.