mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
compose: Change stream field in composebox to be a dropdown.
Fixes #11832 This lets the user see more options than the three that appear in the typeahead menu, and prevents them from inputting invalid stream names. This change replaces the input field with the dropdown, and updates everything that referred to the classnames of the old input field, so that they now get the data they need from the new dropdown.
This commit is contained in:
@@ -668,6 +668,11 @@ export function initialize() {
|
||||
return;
|
||||
}
|
||||
|
||||
// The dropdown menu needs to process clicks to open and close.
|
||||
if ($target.parents("#compose_stream_selection_dropdown").length > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// The mobile compose button has its own popover when clicked, so it already.
|
||||
// hides other popovers.
|
||||
if ($target.is(".compose_mobile_button, .compose_mobile_button *")) {
|
||||
|
||||
Reference in New Issue
Block a user