Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(months): monthClassName is passed the month instead of the current day #3709

Merged
merged 2 commits into from
Jan 30, 2023

Conversation

DanielSharp01
Copy link
Contributor

This PR aims to fix a bug with monthClassName in the month picker. The bug was that the current date with the selected year is passed for all months making the feature not be able to target specific months only all of them in a given year.

The use case is something like this:
image

This might need some tests, however I don't exactly know where to add them. Given a bit of guidance I'm happy to contribute those as well.

@codecov
Copy link

codecov bot commented Aug 24, 2022

Codecov Report

Merging #3709 (aa2394b) into master (60d95bb) will not change coverage.
The diff coverage is 50.00%.

@@           Coverage Diff           @@
##           master    #3709   +/-   ##
=======================================
  Coverage   94.08%   94.08%           
=======================================
  Files          20       20           
  Lines        1723     1723           
  Branches      417      417           
=======================================
  Hits         1621     1621           
  Misses         31       31           
  Partials       71       71           
Impacted Files Coverage Δ
src/month.jsx 92.64% <50.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@martijnrusschen martijnrusschen merged commit c86b222 into Hacker0x01:master Jan 30, 2023
p-rogas pushed a commit to p-rogas/react-datepicker that referenced this pull request Mar 22, 2023
fix(months): monthClassName is passed the month instead of the current day
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants