Skip to content

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.

Fix flicker on close of a node with children

Roman Pominov5bb38b311659
diff --git a/apps/designer/app/designer/shared/tree/tree.tsx b/apps/designer/app/designer/shared/tree/tree.tsx
index cf464888fb..e210af4a64 100644
--- a/apps/designer/app/designer/shared/tree/tree.tsx
+++ b/apps/designer/app/designer/shared/tree/tree.tsx
@@ -64,7 +64,7 @@ export const Tree = ({
instance.children.length > 1 || typeof instance.children[0] === "object";
const children = useMemo(() => {
- if (isOpen === false || showChildren === false) {
+ if ((isOpen === false && animate === false) || showChildren === false) {
return null;
}
const children = [];