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 10b69817aa2..cd9ca423d8f 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -6821,6 +6821,18 @@ registry.BackgroundShape = SnippetOptionWidget.extend({ } return this._super.apply(this, arguments); }, + /** + * @override + */ + onBuilt() { + // Flip classes should no longer be used but are still present in some + // theme snippets. + if (this.$target[0].querySelector('.o_we_flip_x, .o_we_flip_y')) { + this._handlePreviewState(false, () => { + return {flip: this._getShapeData().flip}; + }); + } + }, //-------------------------------------------------------------------------- // Options