mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +00:00
poll_modal: Set cursor on question field.
This commit is contained in:
@@ -452,6 +452,11 @@ export function initialize() {
|
||||
const poll_message_content = poll_modal.frame_poll_message_content();
|
||||
compose_ui.insert_syntax_and_focus(poll_message_content);
|
||||
},
|
||||
on_show() {
|
||||
setTimeout(() => {
|
||||
$("#poll-question-input").trigger("focus");
|
||||
}, 0);
|
||||
},
|
||||
validate_input,
|
||||
form_id: "add-poll-form",
|
||||
id: "add-poll-modal",
|
||||
|
||||
Reference in New Issue
Block a user