Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream-settings: Fix clicking on "?" in group setting label.
Sahil Batra7bfaf45bcfd3
diff --git a/web/src/settings_components.ts b/web/src/settings_components.tsindex dc912a55433..80b1ef1e65d 100644--- a/web/src/settings_components.ts+++ b/web/src/settings_components.ts@@ -1486,10 +1486,16 @@ export function initialize_disable_button_hint_popover(export function enable_opening_typeahead_on_clicking_label($container: JQuery): void {const $group_setting_labels = $container.find(".group-setting-label");$group_setting_labels.on("click", (e) => {+ if ($(e.target).is("a.help_link_widget, a.help_link_widget i")) {+ // Clicking on the "?" icon should just open the link and there is+ // no need to open the typeahead or focus the input, so we return.+ return;+ }+// Click opens the typeahead.- $(e.target).siblings(".pill-container").find(".input").expectOne().trigger("click");+ $(e.currentTarget).siblings(".pill-container").find(".input").expectOne().trigger("click");// Focus puts the cursor into the input.- $(e.target).siblings(".pill-container").find(".input").expectOne().trigger("focus");+ $(e.currentTarget).siblings(".pill-container").find(".input").expectOne().trigger("focus");});}