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 0f7879c6214..6d5719c3867 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -2403,7 +2403,7 @@ var SnippetsMenu = Widget.extend({ let dragAndDropResolve; let $scrollingElement = $().getScrollingElement(this.ownerDocument); - if (!$scrollingElement[0]) { + if (!$scrollingElement[0] || $scrollingElement.find('body.o_in_iframe')) { $scrollingElement = $(this.ownerDocument).find('.o_editable'); }