summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/control_panel.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/control_panel.js')
-rw-r--r--addons/web/static/src/js/control_panel.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/web/static/src/js/control_panel.js b/addons/web/static/src/js/control_panel.js
index 5e2cc36a6a1..18a03d8d55c 100644
--- a/addons/web/static/src/js/control_panel.js
+++ b/addons/web/static/src/js/control_panel.js
@@ -67,6 +67,11 @@ var ControlPanel = Widget.extend({
$switch_buttons: this.$('.oe-cp-switch-buttons'),
};
+ // Prevent the search dropdowns to close when clicking inside them
+ this.$el.on('click.bs.dropdown', '.oe-search-options .dropdown-menu', function (e) {
+ e.stopPropagation();
+ });
+
// By default, hide the ControlPanel and remove its contents from the DOM
this._toggle_visibility(false);