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 548b7fbc14e..a9075890a9d 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -4200,6 +4200,7 @@ registry.sizing = SnippetOptionWidget.extend({ let resizeValues = this._getSize(); this.$handles.on('mousedown', function (ev) { ev.preventDefault(); + self.options.wysiwyg.odooEditor.automaticStepUnactive('resizing'); // If the handle has the class 'readonly', don't allow to resize. // (For the grid handles when we are in mobile view). @@ -4379,6 +4380,8 @@ registry.sizing = SnippetOptionWidget.extend({ setTimeout(function () { self.options.wysiwyg.odooEditor.historyStep(); }, 0); + + self.options.wysiwyg.odooEditor.automaticStepActive('resizing'); }; $body.on('mousemove', bodyMouseMove); $body.on('mouseup', bodyMouseUp);