mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user