diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index 37d21266941..13ef195afa9 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -1235,6 +1235,7 @@ var SnippetEditor = Widget.extend({ // Some drop zones might have been disabled. $el = $el.filter(this.$dropZones); if ($el.length) { + $el.after(this.$target); // If the column is not dropped inside a dropzone. if ($el[0].classList.contains('oe_grid_zone')) { // Case when a column is dropped near a grid. @@ -1269,7 +1270,6 @@ var SnippetEditor = Widget.extend({ } } - $el.after(this.$target); this.dropped = true; } }