Skip to content
Snippets Groups Projects
Commit 8c672662 authored by Arthur Detroux (ard)'s avatar Arthur Detroux (ard)
Browse files

[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#68938

Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent 7eead568
Branches
Tags
No related merge requests found
......@@ -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);
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment