Skip to content

Commit c1711c9

Browse files
authored
Trigger onAnimate even when animatedCurrentIndex doesn't change
1 parent 0010008 commit c1711c9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/bottomSheet/BottomSheet.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,7 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
608608
return;
609609
}
610610

611-
if (toIndex !== animatedCurrentIndex.value) {
612-
_providedOnAnimate(animatedCurrentIndex.value, toIndex);
613-
}
611+
_providedOnAnimate(animatedCurrentIndex.value, toIndex);
614612
},
615613
[_providedOnAnimate, animatedSnapPoints, animatedCurrentIndex]
616614
);

0 commit comments

Comments
 (0)