Skip to content
Snippets Groups Projects
Commit 686e011f authored by Guillaume (gdi)'s avatar Guillaume (gdi)
Browse files

[FIX] website: resolve bug when removing a popup


This commits provides a solution to the traceback appearing when
removing a popup under certain conditions.

Steps to reproduce the bug:
- Drag and drop a popup snippet
- Drag and drop 2 or more text-image in the popup
- Delete the popup
=> traceback

task-2824253

closes odoo/odoo#92482

Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent 0ec6629d
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ options.registry.SnippetPopup = options.Class.extend({
iframe.src = media.dataset.oeExpression || media.dataset.src; // TODO still oeExpression to remove someday
});
});
this.$target.on('hidden.bs.modal.SnippetPopup', () => {
this.$target.on('hide.bs.modal.SnippetPopup', () => {
this.trigger_up('snippet_option_visibility_update', {show: false});
this._removeIframeSrc();
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment