Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

poll_modal: Set cursor on question field.

opmkumar84fe6923708d
diff --git a/web/src/compose_setup.js b/web/src/compose_setup.js
index 0eaa40435f6..0a4a82952f2 100644
--- a/web/src/compose_setup.js
+++ b/web/src/compose_setup.js
@@ -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",