Merge pull request #2284 from thelounge/xpaw/fix-2209

Hide autocompletion menu when input is submitted
This commit is contained in:
Pavel Djundik 2018-03-23 22:40:59 +03:00 committed by GitHub
commit beb2af73b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);