emoji_map: Convert from id to class.

Since it can present in multiple elements, we use it as a class.
This commit is contained in:
Aman Agrawal
2021-04-20 20:17:13 +00:00
committed by Tim Abbott
parent 9816da629b
commit 54b31df1b6
4 changed files with 4 additions and 4 deletions

View File

@@ -671,7 +671,7 @@ export function initialize() {
function handle_compose_click(e) {
// Emoji clicks should be handled by their own click handler in emoji_picker.js
if ($(e.target).is("#emoji_map, img.emoji, .drag, .compose_giphy_logo")) {
if ($(e.target).is(".emoji_map, img.emoji, .drag, .compose_giphy_logo")) {
return;
}

View File

@@ -700,7 +700,7 @@ export function register_click_handlers() {
hide_emoji_popover();
});
$("body").on("click", "#emoji_map", function (e) {
$("body").on("click", ".emoji_map", function (e) {
e.preventDefault();
e.stopPropagation();
// The data-message-id attribute is only present in the emoji icon present in