mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
sidebar_ui: Fix selection box disappears while navigating to muted row.
This happens since the don't exclude the row which toggles muted / inactive channels from all_rows, while user is searching and hence selections box ends up there while navigating to the muted / inactive channel row.
This commit is contained in:
@@ -487,11 +487,17 @@ function all_rows(): JQuery {
|
|||||||
".stream-list-section-container.collapsed .topic-list-item:not(.active-sub-filter).bottom_left_row",
|
".stream-list-section-container.collapsed .topic-list-item:not(.active-sub-filter).bottom_left_row",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Exclude toggle inactive / muted channels row from the list of rows if user is searching.
|
||||||
|
const $toggle_inactive_or_muted_channels_row = $(
|
||||||
|
"#streams_list.is_searching .stream-list-toggle-inactive-or-muted-channels.bottom_left_row",
|
||||||
|
);
|
||||||
|
|
||||||
return $all_rows
|
return $all_rows
|
||||||
.not($inactive_or_muted_rows)
|
.not($inactive_or_muted_rows)
|
||||||
.not($collapsed_views)
|
.not($collapsed_views)
|
||||||
.not($collapsed_channels)
|
.not($collapsed_channels)
|
||||||
.not($hidden_topic_rows);
|
.not($hidden_topic_rows)
|
||||||
|
.not($toggle_inactive_or_muted_channels_row);
|
||||||
}
|
}
|
||||||
|
|
||||||
class LeftSidebarListCursor extends ListCursor<JQuery> {
|
class LeftSidebarListCursor extends ListCursor<JQuery> {
|
||||||
|
|||||||
Reference in New Issue
Block a user