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: Insert tooltip element directly in `.message_reaction`.

Aman Agrawalfc18ec4c04c7
diff --git a/static/js/tippyjs.js b/static/js/tippyjs.js
index 9bc71c9057a..df933e01f84 100644
--- a/static/js/tippyjs.js
+++ b/static/js/tippyjs.js
@@ -53,5 +53,8 @@ export function initialize() {
const title = reactions.get_reaction_title_data(message_id, local_id);
instance.setContent(title);
},
+ // Insert directly into the `.message_reaction` element so
+ // that when the reaction is hidden, tooltip hides as well.
+ appendTo: (reference) => reference,
});
}