Skip to content

Commit cfc2d69

Browse files
authored
WheelPicker - fix typescript error in function sent to onLayout (#1256)
1 parent b750df6 commit cfc2d69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/incubator/WheelPicker/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ const WheelPicker = React.memo(
100100
}
101101
};
102102

103-
const scrollToPassedIndex = (animated = false) => {
104-
scrollToIndex(currentIndex, animated);
103+
const scrollToPassedIndex = () => {
104+
scrollToIndex(currentIndex, false);
105105
};
106106

107107
const scrollToIndex = (index: number, animated: boolean) => {

0 commit comments

Comments
 (0)