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 6d5719c3867..98f72589ccd 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] || $scrollingElement.find('body.o_in_iframe')) { + if (!$scrollingElement[0] || $scrollingElement.find('body.o_in_iframe').length) { $scrollingElement = $(this.ownerDocument).find('.o_editable'); }