diff --git a/config/current.ver b/config/current.ver index 3ec33c0..6e3ccb0 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.1.67 \ No newline at end of file +1.1.68 \ No newline at end of file diff --git a/public/assets/js/bridge/blocks-placeholder.js b/public/assets/js/bridge/blocks-placeholder.js index 05b6975..8dd8457 100644 --- a/public/assets/js/bridge/blocks-placeholder.js +++ b/public/assets/js/bridge/blocks-placeholder.js @@ -524,6 +524,9 @@ const refreshPlaceholderComponent = (component) => { cancelBtn.addEventListener('click', (e) => { e.preventDefault(); fireCancel('cancel-button'); + if (window.B && typeof window.B.allowModalCloseOnce === 'function') { + window.B.allowModalCloseOnce(); + } modal.close(); }); @@ -600,6 +603,9 @@ const refreshPlaceholderComponent = (component) => { } } didSave = true; + if (window.B && typeof window.B.allowModalCloseOnce === 'function') { + window.B.allowModalCloseOnce(); + } modal.close(); });