[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user