@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
|
@@ -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
|
}
|