From 23e81dec468efb9cb1f8763b31ab849a3f539728 Mon Sep 17 00:00:00 2001 From: Nicolas Bayet Date: Mon, 28 Mar 2022 12:19:36 +0000 Subject: [PATCH] [FIX] website: do not activate megamenu snippet when translating task-2810332 X-original-commit: 372909978ac8869ab440bbd06a625afd4dd255a0 Part-of: odoo/odoo#89071 --- addons/website/static/src/js/editor/wysiwyg.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/website/static/src/js/editor/wysiwyg.js b/addons/website/static/src/js/editor/wysiwyg.js index f9e1403f345..47a068080e2 100644 --- a/addons/website/static/src/js/editor/wysiwyg.js +++ b/addons/website/static/src/js/editor/wysiwyg.js @@ -67,7 +67,11 @@ Wysiwyg.include({ // Then toggle the clicked one toggleDropdown($toggle) .then(dispose) - .then(() => this._toggleMegaMenu($toggle[0])) + .then(() => { + if (!this.options.enableTranslation) { + this._toggleMegaMenu($toggle[0]); + } + }) .then(() => this.odooEditor.observerActive()); });