diff --git a/apps/client/src/widgets/react/Collapsible.tsx b/apps/client/src/widgets/react/Collapsible.tsx index cdbd0dcac5..38d2e4caf0 100644 --- a/apps/client/src/widgets/react/Collapsible.tsx +++ b/apps/client/src/widgets/react/Collapsible.tsx @@ -43,13 +43,13 @@ export function ExternallyControlledCollapsible({ title, children, className, ex setFullyExpanded(true); }, 250); return () => clearTimeout(timeout); - } else { - setFullyExpanded(true); - } + } + setFullyExpanded(true); + } else { setFullyExpanded(false); } - }, [expanded, transitionEnabled]) + }, [expanded, transitionEnabled]); return (