From cad679ad9063444cde9af6ae65582e1996a76276 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Thu, 2 May 2024 13:49:01 -0500 Subject: [PATCH] Fix chat emoji toggle --- templates/chat/chat_js.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/chat/chat_js.html b/templates/chat/chat_js.html index 9d84526..70c52a0 100644 --- a/templates/chat/chat_js.html +++ b/templates/chat/chat_js.html @@ -478,12 +478,13 @@ const button = document.querySelector('#emoji-button'); const tooltip = document.querySelector('.tooltip'); - Popper.createPopper(button, tooltip, { - placement: isMobile ? 'auto-end' : 'left-end', + const popper = Popper.createPopper(button, tooltip, { + placement: isMobile ? 'auto-end' : 'left', }); function toggleEmoji() { - tooltip.classList.toggle('shown') + tooltip.classList.toggle('shown'); + popper.update(); } $('#emoji-button').on('click', function(e) { e.preventDefault();