sidebar_ui: Avoid jQuery sizzle extension :visible.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2025-05-15 17:29:39 -07:00
committed by Tim Abbott
parent c248459af2
commit acf23f73a6

View File

@@ -100,7 +100,7 @@ export function show_streamlist_sidebar(): void {
export function show_left_sidebar(): void { export function show_left_sidebar(): void {
if ( if (
// Check if left column is a overlay and is not visible. // Check if left column is a overlay and is not visible.
$("#streamlist-toggle").is(":visible") && $("#streamlist-toggle").css("display") !== "none" &&
!left_sidebar_expanded_as_overlay !left_sidebar_expanded_as_overlay
) { ) {
popovers.hide_all(); popovers.hide_all();