@innovastudio/contentbuilder 1.5.59 → 1.5.60

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.59",
4
+ "version": "1.5.60",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -64061,7 +64061,7 @@ class GradientPicker {
64061
64061
  // Delete custom gradient
64062
64062
  let btnsRemoveGrad = this.objStuff.querySelectorAll('.div-custom-gradients .is-elmgrad-remove');
64063
64063
  Array.prototype.forEach.call(btnsRemoveGrad, btnRemoveGrad => {
64064
- btnRemoveGrad.addEventListener('click', () => {
64064
+ btnRemoveGrad.addEventListener('click', e => {
64065
64065
  //Custom grad colors
64066
64066
  let customgradcolors = [];
64067
64067
  if (localStorage.getItem('_customgradcolors') !== null) {
@@ -64074,8 +64074,9 @@ class GradientPicker {
64074
64074
  }
64075
64075
  }
64076
64076
  localStorage.setItem('_customgradcolors', JSON.stringify(customgradcolors));
64077
- btnRemoveGrad.parentNode.parentNode.removeChild(btnRemoveGrad.parentNode);
64078
- return false;
64077
+ btnRemoveGrad.closest('.is-elmgrad-item').remove();
64078
+ e.preventDefault();
64079
+ e.stopImmediatePropagation();
64079
64080
  });
64080
64081
  });
64081
64082
  });
@@ -64180,7 +64181,7 @@ class GradientPicker {
64180
64181
  // Delete custom gradient
64181
64182
  let btnsRemoveGrad = this.objStuff.querySelectorAll('.div-custom-gradients .is-elmgrad-remove');
64182
64183
  Array.prototype.forEach.call(btnsRemoveGrad, btnRemoveGrad => {
64183
- btnRemoveGrad.addEventListener('click', () => {
64184
+ btnRemoveGrad.addEventListener('click', e => {
64184
64185
  //Custom grad colors
64185
64186
  let customgradcolors = [];
64186
64187
  if (localStorage.getItem('_customgradcolors') !== null) {
@@ -64193,8 +64194,9 @@ class GradientPicker {
64193
64194
  }
64194
64195
  }
64195
64196
  localStorage.setItem('_customgradcolors', JSON.stringify(customgradcolors));
64196
- btnRemoveGrad.parentNode.parentNode.removeChild(btnRemoveGrad.parentNode);
64197
- return false;
64197
+ btnRemoveGrad.closest('.is-elmgrad-item').remove();
64198
+ e.preventDefault();
64199
+ e.stopImmediatePropagation();
64198
64200
  });
64199
64201
  });
64200
64202
  const handleKeyDown = e => {