@innovastudio/contentbuilder 1.1.8 → 1.1.9

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "",
5
5
  "main": "public/contentbuilder/contentbuilder.esm.js",
6
6
  "files": [
@@ -2097,7 +2097,7 @@ button:focus {
2097
2097
  top: 50%;
2098
2098
  left: auto;
2099
2099
  right: 30%;
2100
- margin-top: -383px;
2100
+ margin-top: -343px;
2101
2101
  box-sizing: content-box;
2102
2102
  flex-direction: row;
2103
2103
  align-items: flex-start;
@@ -46852,6 +46852,7 @@ class Image {
46852
46852
  imageTool.style.display = '';
46853
46853
  setTimeout(() => {
46854
46854
  let elm = this.builder.activeImage;
46855
+ if (!elm) return;
46855
46856
 
46856
46857
  if (dom$A.hasClass(elm.parentNode, 'img-circular')) {
46857
46858
  elm = elm.parentNode;
@@ -66714,7 +66715,8 @@ class ContentBuilder {
66714
66715
 
66715
66716
  document.addEventListener('click', this.doDocumentClick = e => {
66716
66717
  e = e || window.event;
66717
- var target = e.target || e.srcElement;
66718
+ let target = e.target || e.srcElement;
66719
+ if (!target) return;
66718
66720
  let rowClicked = dom.hasClass(target.parentNode, 'is-builder');
66719
66721
  let containerClicked = dom.hasClass(target, 'is-builder');
66720
66722
  let a = false,