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.

confirm_dialog: Focus on the yes_button after opening the modal.

sahil839208f3d7f1bca
diff --git a/static/js/confirm_dialog.js b/static/js/confirm_dialog.js
index d9be6d4eb4f..e5073cb8c7a 100644
--- a/static/js/confirm_dialog.js
+++ b/static/js/confirm_dialog.js
@@ -78,4 +78,8 @@ export function launch(conf) {
// Open the modal
overlays.open_modal("#confirm_dialog_modal");
+
+ conf.parent.on("shown.bs.modal", () => {
+ yes_button.trigger("focus");
+ });
}