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 b3d90a4ddd5c7232dc8a3f2ed87a45271f29faa9..dd20f8fade57c684f8926310cc49d4e119e3a86a 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -2074,6 +2074,13 @@ var SnippetsMenu = Widget.extend({ } } + // TODO mentioning external app snippet but done as a stable fix + // that will be adapted in master: if popup snippet, do not + // allow to add it in another snippet + if ($baseBody[0].matches('.s_popup, .o_newsletter_popup')) { + $selectorChildren = $selectorChildren.not('[data-snippet] *'); + } + $toInsert = $baseBody.clone(); // Color-customize dynamic SVGs in dropped snippets with current theme colors. [...$toInsert.find('img[src^="/web_editor/shape/"]')].forEach(dynamicSvg => {