fix: autocomplete tags on body when page has invalid content (#5262)

Removed children from content model check in command panel tags.
This commit is contained in:
Bogdan Chadkin authored and GitHub committed 2025-06-10 11:29:58 +03:00
1 parent bac4627643
commit 31cf38d1bc
1 file changed
+3 -1
@@ -265,7 +265,9 @@ const $tagOptions = computed(
newInstances.set(childInstance.id, childInstance);
newInstances.set(instance.id, {
...instance,
children: [...instance.children, { type: "id", value: childInstance.id }],
// avoid preserving original children to not invalidate tag
// when some descendants do not satisfy content model
children: [{ type: "id", value: childInstance.id }],
});
for (const tag of tags) {
childInstance.tag = tag;