From c1711c950b6956a97b60eb67cf7499765109b8bb Mon Sep 17 00:00:00 2001 From: Zakarya Mamouni Date: Tue, 1 Mar 2022 14:07:32 +0100 Subject: [PATCH] Trigger onAnimate even when animatedCurrentIndex doesn't change --- src/components/bottomSheet/BottomSheet.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/bottomSheet/BottomSheet.tsx b/src/components/bottomSheet/BottomSheet.tsx index 0f5ac23fd..414e6d638 100644 --- a/src/components/bottomSheet/BottomSheet.tsx +++ b/src/components/bottomSheet/BottomSheet.tsx @@ -608,9 +608,7 @@ const BottomSheetComponent = forwardRef( return; } - if (toIndex !== animatedCurrentIndex.value) { - _providedOnAnimate(animatedCurrentIndex.value, toIndex); - } + _providedOnAnimate(animatedCurrentIndex.value, toIndex); }, [_providedOnAnimate, animatedSnapPoints, animatedCurrentIndex] );