[FIX] website: hide cookie bar when entering edit mode
Previously : Once a user enabled the cookie bar, it prevented him from dropping snippets in the main area of the page because the focus was on the cookie bar. Dropping snippets there has a confusing behavior and might make the user think the editor is broken. Reason : The cookie bar has an oe_structure class and takes over the body if it's not hidden or dismissed. The oe_structure allows to drop snippets. Fix : Hiding the cookie bar when user enters edit mode to avoid dropping snippets in it by mistake. task-2477430 closes odoo/odoo#70258 X-original-commit: 8c672662c80d0dfaeb06eedfc7136a68734fbdb3 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -28,6 +28,7 @@ const PopupWidget = publicWidget.Widget.extend({
|
||||
destroy: function () {
|
||||
this._super.apply(this, arguments);
|
||||
$(document).off('mouseleave.open_popup');
|
||||
this.$target.find('.modal').modal('hide');
|
||||
clearTimeout(this.timeout);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user