Skip to content

Commit

Permalink
Issue while selecting previous month date from FEBRUARY. arqex#852
Browse files Browse the repository at this point in the history
  • Loading branch information
Manda committed Feb 13, 2023
1 parent fd2e592 commit 93d8c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DateTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ export default class Datetime extends React.Component {

// Need to set month and year will for days view (prev/next month)
if ( currentView === 'days' ) {
viewDate.month( parseInt( e.target.getAttribute('data-month'), 10 ) );
viewDate.year( parseInt( e.target.getAttribute('data-year'), 10 ) );
viewDate.month( parseInt( e.target.getAttribute('data-month'), 10 ) );
}
// Set the value into day/month/year
viewDate[ this.viewToMethod[currentView] ](
Expand Down

0 comments on commit 93d8c44

Please sign in to comment.