Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
streams: Consider only visible choices while selecting default choice.
Sahil Batra265a587470f2
diff --git a/static/js/stream_create.js b/static/js/stream_create.jsindex c3b0ddd4345..59fb6e378e9 100644--- a/static/js/stream_create.js+++ b/static/js/stream_create.js@@ -338,8 +338,8 @@ export function show_new_stream_modal() {html_selector: (user) => $(`#${CSS.escape("user_checkbox_" + user.user_id)}`),});- // Select the first enabled choice for stream privacy.- $("#make-invite-only input:not([disabled]):first").prop("checked", true);+ // Select the first visible and enabled choice for stream privacy.+ $("#make-invite-only input:visible:not([disabled]):first").prop("checked", true);// Make the options default to the same each time:// "announce stream" on.$("#stream_creation_form .stream-message-retention-days-input").hide();