[FIX] website: properly save popup id

closes odoo/odoo#63408

X-original-commit: 8ae2fee6e71fc8bde56a87ee6b21268e5b1d9bc9
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
Antoine Guenet
2020-12-15 14:50:35 +00:00
parent bd7aeae189
commit 4a4dfb8a40
@@ -110,7 +110,10 @@ snippetOptions.registry.SnippetPopup = snippetOptions.SnippetOptionWidget.extend
* @private
*/
_assignUniqueID: function () {
this.$target.closest('.s_popup').attr('id', 'sPopup' + Date.now());
const $popup = this.$target.closest('.s_popup');
this.wysiwyg.withDomMutations($popup, () => {
$popup.attr('id', 'sPopup' + Date.now());
});
},
/**
* @override