mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +00:00
compose: Prevent displaying banner when channel picker is opened.
Prevent displaying the topic resolved banner when the channel picker (compose_select_recipient_dropdown_widget) is opened in the case of forwarding messages. This is done to prevent the overlap of the channel picker and the banner, as it hides some part of the banner text. Fixes: #33449
This commit is contained in:
committed by
Tim Abbott
parent
dadec69986
commit
9ef3a19451
@@ -74,7 +74,11 @@ export function initialize() {
|
||||
if ($("#compose").hasClass("preview_mode")) {
|
||||
compose.render_preview_area();
|
||||
}
|
||||
compose_validate.warn_if_topic_resolved(false);
|
||||
const recipient_widget_hidden =
|
||||
$(".compose_select_recipient-dropdown-list-container").length === 0;
|
||||
if (recipient_widget_hidden) {
|
||||
compose_validate.warn_if_topic_resolved(false);
|
||||
}
|
||||
const compose_text_length = compose_validate.check_overflow_text($("#send_message_form"));
|
||||
|
||||
// Change compose close button tooltip as per condition.
|
||||
|
||||
Reference in New Issue
Block a user