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.

streams: Open typeahead on click on adding subscribers.

Shubham Padiae0dda789eefe
diff --git a/web/src/pill_typeahead.ts b/web/src/pill_typeahead.ts
index 4a93fcd3b70..d78b53aad25 100644
--- a/web/src/pill_typeahead.ts
+++ b/web/src/pill_typeahead.ts
@@ -282,6 +282,8 @@ export function set_up_combined(
};
new Typeahead(bootstrap_typeahead_input, {
dropup: true,
+ helpOnEmptyStrings: true,
+ hideOnEmptyAfterBackspace: true,
source(query: string): TypeaheadItem[] {
let source: TypeaheadItem[] = [];
if (include_streams(query)) {
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css
index c5851d2f2f3..9dea4edffa4 100644
--- a/web/styles/subscriptions.css
+++ b/web/styles/subscriptions.css
@@ -257,6 +257,13 @@ h4.user_group_setting_subsection_title {
display: inline-flex;
width: 100%;
align-items: center;
+
+ /* We need on click events to fire on this input for our typeahead.
+ This ensures that the input occupies space in the parent
+ container. */
+ .input {
+ flex-grow: 1;
+ }
}
.add_subscribers_container .add_subscriber_button_wrapper,