Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tippyjs: Avoid jQuery selector extension :visible.

Anders Kaseorg6c0e7b20f72f
diff --git a/web/src/tippyjs.ts b/web/src/tippyjs.ts
index d17c24b946c..64232870097 100644
--- a/web/src/tippyjs.ts
+++ b/web/src/tippyjs.ts
@@ -657,7 +657,7 @@ export function initialize(): void {
appendTo: () => document.body,
onShow(instance) {
let template = "show-userlist-tooltip-template";
- if ($("#right-sidebar-container").is(":visible")) {
+ if ($("#right-sidebar-container").css("display") !== "none") {
template = "hide-userlist-tooltip-template";
}
$(instance.reference).attr("data-tooltip-template-id", template);