From 4dcb08745b3551799892d6fa2e9394b75ca7582f Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 24 Mar 2026 16:49:23 +0200 Subject: [PATCH] fix(standalone/setup): clicking on advanced options submits form --- apps/client/src/widgets/react/Collapsible.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 (