We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3070e4a + 321084a commit 3ed38acCopy full SHA for 3ed38ac
src/calendar.jsx
@@ -230,7 +230,8 @@ export default class Calendar extends React.Component {
230
componentDidUpdate(prevProps) {
231
if (
232
this.props.preSelection &&
233
- !isSameDay(this.props.preSelection, prevProps.preSelection)
+ (!isSameDay(this.props.preSelection, prevProps.preSelection) ||
234
+ this.props.monthSelectedIn !== prevProps.monthSelectedIn)
235
) {
236
this.setState({
237
date: this.props.preSelection,
0 commit comments