From c99e9f3b86f98fe4d62eb5d6c4d43224c4a2497d Mon Sep 17 00:00:00 2001 From: zobweyt Date: Tue, 19 Nov 2024 14:40:32 +0300 Subject: [PATCH] fix: correct reactive dependency --- .../core/src/segmented-control/segmented-control-indicator.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);