@innovastudio/contentbuilder 1.5.210 → 1.5.211

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.210",
4
+ "version": "1.5.211",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -5598,8 +5598,8 @@ class Util {
5598
5598
  }
5599
5599
  let editingInsidePlugin = false;
5600
5600
  let elm = this.builder.activeElement;
5601
- const plugin = elm.closest('[data-cb-type]');
5602
- const subblock = elm.closest('.is-subblock');
5601
+ const plugin = elm && elm.closest('[data-cb-type]');
5602
+ const subblock = elm && elm.closest('.is-subblock');
5603
5603
  if (plugin && subblock) {
5604
5604
  editingInsidePlugin = true;
5605
5605
  }