summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/editor/snippets.options.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static/src/js/editor/snippets.options.js')
-rw-r--r--addons/web_editor/static/src/js/editor/snippets.options.js2
1 files changed, 2 insertions, 0 deletions
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 cbf8ffb7b6b..621cd9b4d6f 100644
--- a/addons/web_editor/static/src/js/editor/snippets.options.js
+++ b/addons/web_editor/static/src/js/editor/snippets.options.js
@@ -4342,6 +4342,8 @@ registry.BackgroundPosition = SnippetOptionWidget.extend({
// Create empty clone of $target with same display size, make it draggable and give it a tooltip.
this.$bgDragger = this.$target.clone().empty();
+ // Prevent clone from being seen as editor if target is editor (eg. background on root tag)
+ this.$bgDragger.removeClass('o_editable');
// Some CSS child selector rules will not be applied since the clone has a different container from $target.
// The background-attachment property should be the same in both $target & $bgDragger, this will keep the
// preview more "wysiwyg" instead of getting different result when bg position saved (e.g. parallax snippet)