diff --git a/packages/core/src/segmented-control/segmented-control-indicator.tsx b/packages/core/src/segmented-control/segmented-control-indicator.tsx index ba2b8ada..219738f8 100644 --- a/packages/core/src/segmented-control/segmented-control-indicator.tsx +++ b/packages/core/src/segmented-control/segmented-control-indicator.tsx @@ -64,7 +64,7 @@ export function SegmentedControlIndicator( }; createEffect( - on(context.value, () => { + on(context.selectedItem, () => { setResizing(!style()); computeStyle(); setResizing(false);