@innovastudio/contentbuilder 1.3.46 → 1.3.48

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.46",
4
+ "version": "1.3.48",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -49581,6 +49581,7 @@ class Image$1 {
49581
49581
  });
49582
49582
  document.querySelector('.moveable-control-box').style.display = 'none';
49583
49583
  imageResizer.addEventListener('click', () => {
49584
+ this.builder.activeImage.click();
49584
49585
  this.repositionImageTool();
49585
49586
  this.builder.elmTool.repositionElementTool();
49586
49587
  }); // Browse local image
@@ -75166,7 +75167,10 @@ class ContentBuilder {
75166
75167
  if (!(a || b || c || d || f || g || h || i || j || o || isSpecialElement) || rowClicked && !i || containerClicked) {
75167
75168
  // Click anywhere but is not inside builder area, modal, popup, tool or rte, then clear row/column (cell) selection
75168
75169
  if (!this.dom.getSelected()) {
75169
- if (!document.querySelector('.is-modal.active')) {
75170
+ // if(!document.querySelector('.is-modal.active')) { // Additional (to prevent lost focus)
75171
+ let openedModal = document.querySelector('.is-modal.active:not(.is-modal-content)');
75172
+
75173
+ if (!openedModal) {
75170
75174
  // Additional (to prevent lost focus)
75171
75175
  util.clearActiveCell();
75172
75176
  util.clearControls();