Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit faae496

Browse files
committed
fix shownDate at scrolled calendar #190
1 parent 885b191 commit faae496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Calendar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class Calendar extends PureComponent {
113113
componentDidMount() {
114114
if (this.props.scroll.enabled) {
115115
// prevent react-list's initial render focus problem
116-
setTimeout(this.updateShownDate, 1);
116+
setTimeout(() => this.focusToDate(this.state.focusedDate), 1);
117117
}
118118
}
119119
componentWillReceiveProps(nextProps) {

0 commit comments

Comments
 (0)