@pushwoosh/dumb-components 1.0.53 → 1.0.54
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.
|
@@ -149,8 +149,8 @@ export function content2string(state) {
|
|
|
149
149
|
export function validateContent(value) {
|
|
150
150
|
for (const el of value) {
|
|
151
151
|
if (isElement(el)) {
|
|
152
|
-
if (el.type === 'dc') {
|
|
153
|
-
return
|
|
152
|
+
if (el.type === 'dc' && !el.dc.tagName) {
|
|
153
|
+
return false;
|
|
154
154
|
}
|
|
155
155
|
if (!validateContent(el.children)) {
|
|
156
156
|
return false;
|