Skip to content

Commit 411eede

Browse files
author
bd-arc
committed
refactor(PaginationDot): preserve backward compatibility
1 parent 5d5e4fb commit 411eede

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pagination/PaginationDot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default class PaginationDot extends PureComponent {
131131

132132
const onPress = tappable ? () => {
133133
try {
134-
const currentRef = carouselRef.current;
134+
const currentRef = carouselRef.current || carouselRef;
135135
currentRef._snapToItem(currentRef._getPositionIndex(index));
136136
} catch (error) {
137137
console.warn(

0 commit comments

Comments
 (0)