From 807ba554ca645c9411647ee2ee80592150be97a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=B5=20Trung=20Ho=C3=A0ng=20H=C6=B0ng?= <89190591+HungBacktracking@users.noreply.github.com> Date: Tue, 15 Aug 2023 00:39:41 +0700 Subject: [PATCH] Fix emoji bar in chat (#76) --- templates/chat/chat.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/chat/chat.html b/templates/chat/chat.html index beb38b4..37d1d04 100644 --- a/templates/chat/chat.html +++ b/templates/chat/chat.html @@ -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);