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: Only destroy tippy popups if they exist at all.

Alex Vandiverf34509bbdd5d
diff --git a/web/src/tippyjs.js b/web/src/tippyjs.js
index fdab4bd7364..a9a9e82f2dc 100644
--- a/web/src/tippyjs.js
+++ b/web/src/tippyjs.js
@@ -186,7 +186,7 @@ export function initialize() {
// Remove tooltip when user is trying to tab through all the icons.
// If user tabs slowly, tooltips are displayed otherwise they are
// destroyed before they can be displayed.
- e.currentTarget._tippy.destroy();
+ e.currentTarget?._tippy?.destroy();
});
delegate("body", {