Skip to content

Commit b3ddce8

Browse files
authored
Merge pull request #3 from zakthedev/master
Trigger onAnimate even when animatedCurrentIndex doesn't change
2 parents 8ad0b4c + c1711c9 commit b3ddce8

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
@@ -618,9 +618,7 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
618618
return;
619619
}
620620

621-
if (toIndex !== animatedCurrentIndex.value) {
622-
_providedOnAnimate(animatedCurrentIndex.value, toIndex);
623-
}
621+
_providedOnAnimate(animatedCurrentIndex.value, toIndex);
624622
},
625623
[_providedOnAnimate, animatedSnapPoints, animatedCurrentIndex]
626624
);

0 commit comments

Comments
 (0)