@innovastudio/contentbuilder 1.3.45 → 1.3.47

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.3.45",
4
+ "version": "1.3.47",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -15244,12 +15244,9 @@ class HtmlUtil {
15244
15244
  elms = tmp.querySelectorAll('[data-scroll]');
15245
15245
  dom$h.removeAttributes(elms, 'data-scroll');
15246
15246
  elms = tmp.querySelectorAll('[data-scroll-once]');
15247
- dom$h.removeAttributes(elms, 'data-scroll-once');
15248
- elms = tmp.querySelectorAll(`[data-top-bottom],[data-top],[data-50-top],[data-100-top],
15249
- [data-center-bottom],[data-center],[data-center-top],[data--400-bottom],[data--300-bottom],
15250
- [data--200-bottom],[data--150-bottom],[data--100-bottom],[data--50-bottom],
15251
- [data-bottom],[data-50-bottom],[data-100-bottom],[data-150-bottom],[data-200-bottom],
15252
- [data-300-bottom],[data-400-bottom],[data-bottom-top]`);
15247
+ dom$h.removeAttributes(elms, 'data-scroll-once'); // cleaning
15248
+
15249
+ elms = tmp.querySelectorAll('[data-bottom-top],[data-center],[data-center-bottom],[data-100-top],[data-50-top],[data-top],[data-top-bottom],[data-center-top],[data--300-bottom],[data--150-bottom],[data--50-bottom],[data-bottom],[data-100-bottom],[data-150-bottom],[data-400-bottom],' + '[data--400-bottom],[data--200-bottom],[data--100-bottom],[data-50-bottom],[data-200-bottom],[data-300-bottom],' + '[data-in],[data-in-150],[data-in-300],[data-cen--150],[data-cen],[data-cen-150],[data-out--300],[data-out--150],[data-out]');
15253
15250
  Array.prototype.forEach.call(elms, elm => {
15254
15251
  elm.style.transition = '';
15255
15252
  elm.style.transform = '';
@@ -75169,7 +75166,10 @@ class ContentBuilder {
75169
75166
  if (!(a || b || c || d || f || g || h || i || j || o || isSpecialElement) || rowClicked && !i || containerClicked) {
75170
75167
  // Click anywhere but is not inside builder area, modal, popup, tool or rte, then clear row/column (cell) selection
75171
75168
  if (!this.dom.getSelected()) {
75172
- if (!document.querySelector('.is-modal.active')) {
75169
+ // if(!document.querySelector('.is-modal.active')) { // Additional (to prevent lost focus)
75170
+ let openedModal = document.querySelector('.is-modal.active:not(.is-modal-content)');
75171
+
75172
+ if (!openedModal) {
75173
75173
  // Additional (to prevent lost focus)
75174
75174
  util.clearActiveCell();
75175
75175
  util.clearControls();