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 4f698d6839c..b0e8e318f7b 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -1113,7 +1113,6 @@ var SnippetEditor = Widget.extend({ over: function () { if (self.dropped) { self.$target.detach(); - $('.oe_drop_zone').removeClass('invisible'); } // Prevent a column to be trapped in an upper grid dropzone at @@ -3283,7 +3282,8 @@ var SnippetsMenu = Widget.extend({ if (dropped) { $toInsert.detach(); $toInsert.addClass('oe_snippet_body'); - $('.oe_drop_zone').removeClass('invisible'); + [...$dropZones].forEach(dropzoneEl => + dropzoneEl.classList.remove("invisible")); } dropped = true; $(this).first().after($toInsert).addClass('invisible');