diff options
| author | Arthur Detroux (ard) <ard@odoo.com> | 2021-04-28 09:52:46 +0000 |
|---|---|---|
| committer | Arthur Detroux (ard) <ard@odoo.com> | 2021-04-29 09:03:48 +0000 |
| commit | 8c672662c80d0dfaeb06eedfc7136a68734fbdb3 (patch) | |
| tree | b88b84fa1f450edaae6098ae3de62e474fb63474 /addons/website/static/src/snippets | |
| parent | 7eead568b4c38076fbdc79d979448c2f3601fa68 (diff) | |
[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: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static/src/snippets')
| -rw-r--r-- | addons/website/static/src/snippets/s_popup/000.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website/static/src/snippets/s_popup/000.js b/addons/website/static/src/snippets/s_popup/000.js index 0966d2d8b29..2b11466e7e6 100644 --- a/addons/website/static/src/snippets/s_popup/000.js +++ b/addons/website/static/src/snippets/s_popup/000.js @@ -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); }, |
