@innovastudio/contentbox 1.6.69 → 1.6.71

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.6.69",
4
+ "version": "1.6.71",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "files": [
@@ -52,7 +52,7 @@
52
52
  "ws": "^8.13.0"
53
53
  },
54
54
  "dependencies": {
55
- "@innovastudio/contentbuilder": "^1.5.59",
55
+ "@innovastudio/contentbuilder": "^1.5.60",
56
56
  "js-beautify": "^1.14.0",
57
57
  "sortablejs": "^1.15.2"
58
58
  }
@@ -90283,7 +90283,7 @@ class GradientPicker {
90283
90283
  // Delete custom gradient
90284
90284
  let btnsRemoveGrad = this.objStuff.querySelectorAll('.div-custom-gradients .is-elmgrad-remove');
90285
90285
  Array.prototype.forEach.call(btnsRemoveGrad, btnRemoveGrad => {
90286
- btnRemoveGrad.addEventListener('click', () => {
90286
+ btnRemoveGrad.addEventListener('click', e => {
90287
90287
  //Custom grad colors
90288
90288
  let customgradcolors = [];
90289
90289
  if (localStorage.getItem('_customgradcolors') !== null) {
@@ -90296,8 +90296,9 @@ class GradientPicker {
90296
90296
  }
90297
90297
  }
90298
90298
  localStorage.setItem('_customgradcolors', JSON.stringify(customgradcolors));
90299
- btnRemoveGrad.parentNode.parentNode.removeChild(btnRemoveGrad.parentNode);
90300
- return false;
90299
+ btnRemoveGrad.closest('.is-elmgrad-item').remove();
90300
+ e.preventDefault();
90301
+ e.stopImmediatePropagation();
90301
90302
  });
90302
90303
  });
90303
90304
  });
@@ -90402,7 +90403,7 @@ class GradientPicker {
90402
90403
  // Delete custom gradient
90403
90404
  let btnsRemoveGrad = this.objStuff.querySelectorAll('.div-custom-gradients .is-elmgrad-remove');
90404
90405
  Array.prototype.forEach.call(btnsRemoveGrad, btnRemoveGrad => {
90405
- btnRemoveGrad.addEventListener('click', () => {
90406
+ btnRemoveGrad.addEventListener('click', e => {
90406
90407
  //Custom grad colors
90407
90408
  let customgradcolors = [];
90408
90409
  if (localStorage.getItem('_customgradcolors') !== null) {
@@ -90415,8 +90416,9 @@ class GradientPicker {
90415
90416
  }
90416
90417
  }
90417
90418
  localStorage.setItem('_customgradcolors', JSON.stringify(customgradcolors));
90418
- btnRemoveGrad.parentNode.parentNode.removeChild(btnRemoveGrad.parentNode);
90419
- return false;
90419
+ btnRemoveGrad.closest('.is-elmgrad-item').remove();
90420
+ e.preventDefault();
90421
+ e.stopImmediatePropagation();
90420
90422
  });
90421
90423
  });
90422
90424
  const handleKeyDown = e => {