Skip to content

Commit

Permalink
Merge pull request #4090 from opendatasoft/fix/selected-month
Browse files Browse the repository at this point in the history
[FIX][Month picker] Selected month follows preselected month
  • Loading branch information
martijnrusschen committed Jun 21, 2023
2 parents 4b01708 + 6415325 commit 1ce7ca3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/month.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ export default class Month extends React.Component {
q === utils.getQuarter(utils.newDate());

isSelectedMonth = (day, m, selected) =>
utils.getMonth(day) === m && utils.getYear(day) === utils.getYear(selected);
utils.getMonth(selected) === m &&
utils.getYear(day) === utils.getYear(selected);

isSelectedQuarter = (day, q, selected) =>
utils.getQuarter(day) === q &&
Expand Down

0 comments on commit 1ce7ca3

Please sign in to comment.