Commit d9fcb2b4 authored by JC Brand's avatar JC Brand

Hide emoji picker when sending a message via enter

parent 52228816
...@@ -654,6 +654,7 @@ converse.plugins.add('converse-chatview', { ...@@ -654,6 +654,7 @@ converse.plugins.add('converse-chatview', {
} }
u.addClass('disabled', textarea); u.addClass('disabled', textarea);
textarea.setAttribute('disabled', 'disabled'); textarea.setAttribute('disabled', 'disabled');
this.el.querySelector('converse-emoji-dropdown')?.hideMenu();
const is_command = this.parseMessageForCommands(message_text); const is_command = this.parseMessageForCommands(message_text);
const message = is_command ? null : await this.model.sendMessage(message_text, spoiler_hint); const message = is_command ? null : await this.model.sendMessage(message_text, spoiler_hint);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment