Skip to content

Commit

Permalink
Merge pull request #3 from zakthedev/master
Browse files Browse the repository at this point in the history
Trigger onAnimate even when animatedCurrentIndex doesn't change
  • Loading branch information
meishuu authored Dec 21, 2022
2 parents 8ad0b4c + c1711c9 commit b3ddce8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/bottomSheet/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -618,9 +618,7 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
return;
}

if (toIndex !== animatedCurrentIndex.value) {
_providedOnAnimate(animatedCurrentIndex.value, toIndex);
}
_providedOnAnimate(animatedCurrentIndex.value, toIndex);
},
[_providedOnAnimate, animatedSnapPoints, animatedCurrentIndex]
);
Expand Down

0 comments on commit b3ddce8

Please sign in to comment.