Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix: autocomplete tags on body when page has invalid content (#5262)
Bogdan Chadkin31cf38d1bc53
diff --git a/apps/builder/app/builder/features/command-panel/command-panel.tsx b/apps/builder/app/builder/features/command-panel/command-panel.tsxindex 3e4bd4f899..16ed36eaca 100644--- a/apps/builder/app/builder/features/command-panel/command-panel.tsx+++ b/apps/builder/app/builder/features/command-panel/command-panel.tsx@@ -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;