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: show whole block tree to support radix components (#4555)
Bogdan Chadkin8115ee9e5564
diff --git a/apps/builder/app/builder/features/navigator/navigator-tree.tsx b/apps/builder/app/builder/features/navigator/navigator-tree.tsxindex 606e18fa08..9f47ba1ad5 100644--- a/apps/builder/app/builder/features/navigator/navigator-tree.tsx+++ b/apps/builder/app/builder/features/navigator/navigator-tree.tsx@@ -145,12 +145,14 @@ export const $flatTree = computed(if (instance.component === "Fragment") {isVisible = false;}- const parentComponent = visibleAncestors.at(-1)?.component;if (isContentMode) {- // hide everything except block and its children+ // hide everything outside of block instances+ const hasBlockAncestor = visibleAncestors.some(+ (ancestor) => ancestor?.component === blockComponent+ );if (instance.component !== blockComponent &&- parentComponent !== blockComponent+ hasBlockAncestor === false) {isVisible = false;}@@ -171,14 +173,8 @@ export const $flatTree = computed(flatTree.push(treeItem);}const level = treeItem.visibleAncestors.length - 1;- // expand everything in content mode- if (isContentMode === false) {- if (- level > 0 &&- instance.children.some((child) => child.type === "id")- ) {- treeItem.isExpanded = expandedItems.has(selector.join());- }+ if (level > 0 && instance.children.some((child) => child.type === "id")) {+ treeItem.isExpanded = expandedItems.has(selector.join());}// always expand invisible itemsif (isVisible === false) {