@innovastudio/contentbuilder 1.5.59 → 1.5.60
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -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.
|
64078
|
-
|
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.
|
64197
|
-
|
64197
|
+
btnRemoveGrad.closest('.is-elmgrad-item').remove();
|
64198
|
+
e.preventDefault();
|
64199
|
+
e.stopImmediatePropagation();
|
64198
64200
|
});
|
64199
64201
|
});
|
64200
64202
|
const handleKeyDown = e => {
|