Hide autocompletion menu when input is submitted

Fixes #2209
This commit is contained in:
Pavel Djundik 2018-03-23 12:20:53 +03:00
parent 18c82f2d06
commit 3886c2a82f

View File

@ -24,6 +24,12 @@ module.exports = {
},
};
$("#form").on("submit", () => {
if (enabled) {
textcomplete.hide();
}
});
const chat = $("#chat");
const sidebar = $("#sidebar");
const emojiSearchTerms = Object.keys(emojiMap);