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.

tippy: Fix persistent message action tooltips on icons after blur.

Aman Agrawalec86290e2a69
diff --git a/static/js/tippyjs.js b/static/js/tippyjs.js
index 004b2b85128..dfd48e558a6 100644
--- a/static/js/tippyjs.js
+++ b/static/js/tippyjs.js
@@ -151,6 +151,13 @@ export function initialize() {
},
});
+ $("body").on("blur", ".message_control_button", (e) => {
+ // Remove tooltip when user is trying to tab through all the icons.
+ // If user tabs slowly, tooltips are displayed otherwise they are
+ // distroyed before they can be displayed.
+ e.currentTarget._tippy.destroy();
+ });
+
delegate("body", {
target: ".message_table .message_time",
appendTo: () => document.body,