summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/web/static/src/js/control_panel/search_bar.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/control_panel/search_bar.js b/addons/web/static/src/js/control_panel/search_bar.js
index c3f8d1ec4d6..dd0d4460350 100644
--- a/addons/web/static/src/js/control_panel/search_bar.js
+++ b/addons/web/static/src/js/control_panel/search_bar.js
@@ -421,6 +421,7 @@ odoo.define('web.SearchBar', function (require) {
/* falls through */
case 'Tab':
if (this.state.inputValue.length) {
+ ev.preventDefault(); // keep the focus inside the search bar
this._selectSource(currentItem);
}
break;