Skip to content

Commit

Permalink
fix animateOnMount
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhnatly committed Oct 10, 2024
1 parent bf9e69b commit 82ec928
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 14 deletions.
4 changes: 2 additions & 2 deletions lib/commonjs/components/bottomSheet/BottomSheet.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/commonjs/components/bottomSheet/BottomSheet.js.map

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/module/components/bottomSheet/BottomSheet.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/module/components/bottomSheet/BottomSheet.js.map

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/components/bottomSheet/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1283,10 +1283,11 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(

if (animateOnMount) {
animateToPosition(nextPosition, ANIMATION_SOURCE.MOUNT);
isAnimatedOnMount.value = true;
} else {
animatedPosition.value = nextPosition;
animatedNextPositionIndex.value = _providedIndex;
}
isAnimatedOnMount.value = true;
},
[_providedIndex, animateOnMount]
);
Expand Down

0 comments on commit 82ec928

Please sign in to comment.