Fix emoji bar

This commit is contained in:
HungBacktracking 2023-08-15 00:30:49 +07:00
parent 68e705404e
commit 7619717192

View file

@ -508,9 +508,15 @@
}
$('#emoji-button').on('click', function(e) {
e.preventDefault();
e.stopPropagation();
toggleEmoji();
});
// Đóng bảng emoji khi click bất kỳ chỗ nào trên màn hình
document.addEventListener("click", function() {
tooltip.classList.remove('shown'); // Ẩn bảng emoji
});
$('emoji-picker').on('emoji-click', function(e) {
var $chat = $('#chat-input').get(0);
insert_char_after_cursor($chat, e.detail.unicode);