Fix chat emoji toggle
This commit is contained in:
parent
a63afd6f3c
commit
cad679ad90
1 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue