From c9dbb8e36b09d3343e6f5be1f6bbbd5d4fc2fd5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Mon, 10 Oct 2022 16:20:46 +0000 Subject: [PATCH] [FIX] mail: do not refocus search bar on click category bar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, when clicking on category in category bar, the search bar was (re-)focused. It was flickering, especially when device prompt a soft keyboard, such as on mobile. This commit fixes the issue by not (re-)focusing the search bar when clicking on a category from the category bar. Task-3013819 closes odoo/odoo#102987 X-original-commit: 61790c029b3b78c2a099ec72b0d688c28d803374 Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/src/models/emoji_search_bar_view.js | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/mail/static/src/models/emoji_search_bar_view.js b/addons/mail/static/src/models/emoji_search_bar_view.js index 8c742e0829c..a4e19f019fe 100644 --- a/addons/mail/static/src/models/emoji_search_bar_view.js +++ b/addons/mail/static/src/models/emoji_search_bar_view.js @@ -41,7 +41,6 @@ registerModel({ reset() { this.update({ currentSearch: "" }); this.inputRef.el.value = ""; - this.update({ isDoFocus: true }); }, /** * @private