Fix emoji bar in chat (#76)
This commit is contained in:
parent
68e705404e
commit
807ba554ca
1 changed files with 6 additions and 0 deletions
|
@ -508,9 +508,15 @@
|
||||||
}
|
}
|
||||||
$('#emoji-button').on('click', function(e) {
|
$('#emoji-button').on('click', function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
toggleEmoji();
|
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) {
|
$('emoji-picker').on('emoji-click', function(e) {
|
||||||
var $chat = $('#chat-input').get(0);
|
var $chat = $('#chat-input').get(0);
|
||||||
insert_char_after_cursor($chat, e.detail.unicode);
|
insert_char_after_cursor($chat, e.detail.unicode);
|
||||||
|
|
Loading…
Reference in a new issue