mirror of https://github.com/zulip/zulip.git
settings: Use `place_caret_at_end` for New Email input field.
Used updated `place_caret_at_end` function from ui_utils to focus `New Email` input field and place the cursor at end on modal render.
This commit is contained in:
parent
17ae99f436
commit
d7d3126f80
|
@ -26,6 +26,7 @@ import * as settings_org from "./settings_org";
|
|||
import * as settings_ui from "./settings_ui";
|
||||
import * as typeahead_helper from "./typeahead_helper";
|
||||
import * as ui_report from "./ui_report";
|
||||
import * as ui_util from "./ui_util";
|
||||
import * as user_pill from "./user_pill";
|
||||
import * as user_profile from "./user_profile";
|
||||
import {user_settings} from "./user_settings";
|
||||
|
@ -732,7 +733,7 @@ export function set_up() {
|
|||
form_id: "change_email_form",
|
||||
on_click: do_change_email,
|
||||
on_shown() {
|
||||
$("#change_email_form input").trigger("focus");
|
||||
ui_util.place_caret_at_end($("#change_email_form input")[0]);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue