@innovastudio/contentbuilder 1.5.201 → 1.5.202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -4693,12 +4693,12 @@ class Util {
|
|
|
4693
4693
|
dom.appendHtml(builderStuff, html);
|
|
4694
4694
|
confirmmodal = builderStuff.querySelector('.is-confirm');
|
|
4695
4695
|
}
|
|
4696
|
-
this.showModal(confirmmodal, false,
|
|
4696
|
+
this.showModal(confirmmodal, false, e => {
|
|
4697
4697
|
//this function runs when overlay is clicked. Remove modal.
|
|
4698
4698
|
confirmmodal.parentNode.removeChild(confirmmodal);
|
|
4699
4699
|
|
|
4700
4700
|
//do task
|
|
4701
|
-
callback(false);
|
|
4701
|
+
callback(false, e);
|
|
4702
4702
|
}, true);
|
|
4703
4703
|
let buttonok = confirmmodal.querySelector('.is-confirm .input-ok');
|
|
4704
4704
|
dom.addEventListener(buttonok, 'click', () => {
|
|
@@ -5022,7 +5022,7 @@ class Util {
|
|
|
5022
5022
|
modal.removeEventListener('keydown', handleKeyDown);
|
|
5023
5023
|
const btnClose = modal.querySelector('.is-modal-close');
|
|
5024
5024
|
if (btnClose) btnClose.removeEventListener('click', close);
|
|
5025
|
-
if (cancelCallback) cancelCallback();
|
|
5025
|
+
if (cancelCallback) cancelCallback(e);
|
|
5026
5026
|
}
|
|
5027
5027
|
};
|
|
5028
5028
|
modal.addEventListener('keydown', handleKeyDown);
|