diff --git a/common/tpl/popup_layout.html b/common/tpl/popup_layout.html
index 556864c29..5252377f9 100644
--- a/common/tpl/popup_layout.html
+++ b/common/tpl/popup_layout.html
@@ -11,7 +11,9 @@
const iframe_sequence = '{{ $iframe_sequence }}';
window.opener = window.parent;
window.close = function() {
- parent.closeModal('_rx_iframe_' + iframe_sequence);
+ setTimeout(function() {
+ parent.closeModal('_rx_iframe_' + iframe_sequence);
+ }, 100);
};