From f2fa5b0a37c92bb1afc995a1d3ecc3c0af3cfaa5 Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Fri, 11 Feb 2022 12:44:50 +0000 Subject: [PATCH] [FIX] web_editor: restore transitions when finding a gradient background Since [1] the class `o_we_force_no_transition` was not removed when selecting a snippet when the background color was a gradient. (It was however removed when selecting a background color.) After this commit the class is removed in that situation just like for any other `data-select-style` attribute. [1]: https://github.com/odoo/odoo/commit/a48a30f954afcb6ff3a59c4f32b05fd0c2cfcd2b task-2633169 closes odoo/odoo#86126 X-original-commit: ed530aef3c6d99712db055099b5f06a31e91d9cf Signed-off-by: Quentin Smetz (qsm) Signed-off-by: Benoit Socias (bso) --- addons/web_editor/static/src/js/editor/snippets.options.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index f9529c6c498..660241f20b1 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -3607,6 +3607,7 @@ const SnippetOptionWidget = Widget.extend({ // if editing the other). const parts = backgroundImageCssToParts(styles['background-image']); if (parts.gradient) { + _restoreTransitions(); return parts.gradient; } }