mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
message_edit: Focus on dropdown-widget if only changing stream is allowed.
Previously, content box was focused inspite of it being disabled in case when only stream editing was allowed. Now we instead focus on the stream down.
This commit is contained in:
@@ -599,6 +599,8 @@ function edit_message($row, raw_content) {
|
||||
$message_edit_topic.trigger("focus");
|
||||
} else if (editability === editability_types.TOPIC_ONLY) {
|
||||
$row.find(".message_edit_topic").trigger("focus");
|
||||
} else if (editability !== editability_types.FULL && is_stream_editable) {
|
||||
$row.find(".select_stream_setting .dropdown-toggle").trigger("focus");
|
||||
} else {
|
||||
$message_edit_content.trigger("focus");
|
||||
// Put cursor at end of input.
|
||||
|
||||
Reference in New Issue
Block a user