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.

emoji_picker: Fix DOM race condition with offsets.

Gittenburg52b7dac6af52
diff --git a/static/js/emoji_picker.js b/static/js/emoji_picker.js
index aac96116485..eee32d4e988 100644
--- a/static/js/emoji_picker.js
+++ b/static/js/emoji_picker.js
@@ -585,7 +585,7 @@ exports.render_emoji_popover = function (elt, id) {
};
show_emoji_catalog();
- refill_section_head_offsets(popover);
+ elt.ready(() => refill_section_head_offsets(popover));
register_popover_events(popover);
};