Skip to content
Snippets Groups Projects
Commit 32c6a3c5 authored by ubermanu's avatar ubermanu
Browse files

bugfix: make the drawer a singleton

parent e68d8f5f
No related branches found
No related tags found
2 merge requests!136Reactions, Retract upload...,!117Reactions
......@@ -218,6 +218,12 @@ converse.plugins.add('sib-reactions', {
*/
openEmojiPicker(ev) {
ev.preventDefault();
// Avoid an error when opening a new picker
if (this.querySelector('emoji-picker')) {
return;
}
const picker = new Picker();
picker.addEventListener('emoji-click', e => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment