fix(modals): extra captcha popup appearing below some modals

This commit is contained in:
Miodec 2024-04-09 12:15:52 +02:00
parent bdc19de2ec
commit dc005aba1b
3 changed files with 3 additions and 0 deletions

View file

@ -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");

View file

@ -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(

View file

@ -30,6 +30,7 @@ export async function show(options: ShowOptions): Promise<void> {
}
void modal.show({
mode: "dialog",
focusFirstInput: true,
beforeAnimation: async (modalEl) => {
CaptchaController.render(