From 10f03fce111c90fd13b92853dc5e08a1a42194e9 Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Tue, 5 Nov 2024 12:12:11 +0100 Subject: [PATCH] demo-orgs: Specify email input when rendering add email modal. There are two inputs for the add email modal in demo organizations, one to add the email address of the owner and one to update their full name. We want the email input to be selected when the modal is opened. --- web/src/settings_account.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/src/settings_account.ts b/web/src/settings_account.ts index 8d523e7f0e..a06d0f8eae 100644 --- a/web/src/settings_account.ts +++ b/web/src/settings_account.ts @@ -713,9 +713,7 @@ export function set_up( form_id: "demo_organization_add_email_form", on_click: do_demo_organization_add_email, on_shown() { - ui_util.place_caret_at_end( - util.the($("#demo_organization_add_email_form input")), - ); + ui_util.place_caret_at_end(util.the($("input#demo_organization_add_email"))); }, post_render: demo_organization_add_email_post_render, });