From 3886c2a82ff4164f1b22e6f3c9d8a23fe5a93364 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 23 Mar 2018 12:20:53 +0300 Subject: [PATCH] Hide autocompletion menu when input is submitted Fixes #2209 --- client/js/autocompletion.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/js/autocompletion.js b/client/js/autocompletion.js index 9e22b1e6..8807f861 100644 --- a/client/js/autocompletion.js +++ b/client/js/autocompletion.js @@ -24,6 +24,12 @@ module.exports = { }, }; +$("#form").on("submit", () => { + if (enabled) { + textcomplete.hide(); + } +}); + const chat = $("#chat"); const sidebar = $("#sidebar"); const emojiSearchTerms = Object.keys(emojiMap);