mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 22:14:29 +09:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user