Skip to content

Commit

Permalink
monthSelectedIn is not reset to 0 when calendar closes
Browse files Browse the repository at this point in the history
  • Loading branch information
jherencia committed Mar 4, 2022
1 parent f644634 commit b67c01e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ export default class DatePicker extends React.Component {
}

if (prevState.open === true && this.state.open === false) {
this.setState({ monthSelectedIn: 0 });
this.props.onCalendarClose();
}
}
Expand Down

0 comments on commit b67c01e

Please sign in to comment.