[FIX] web_editor: prevent traceback on reposition background image
closes odoo/odoo#63413 X-original-commit: 9cd778e683a5978c920bb0d367b3eb01ddf21c6f Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
@@ -4329,7 +4329,7 @@ registry.BackgroundPosition = SnippetOptionWidget.extend({
|
||||
this.$overlayBackground = this.$overlayContent.find('.o_overlay_background');
|
||||
|
||||
this.$backgroundOverlay.on('click', '.o_btn_apply', async () => {
|
||||
await this.wysiwyg.withDomMutations(() => {
|
||||
await this.wysiwyg.withDomMutations(this.$target, () => {
|
||||
this.$target.css('background-position', this.$bgDragger.css('background-position'));
|
||||
});
|
||||
this._toggleBgOverlay(false);
|
||||
|
||||
Reference in New Issue
Block a user