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.
1 parent 1d84d31 commit f12f420Copy full SHA for f12f420
src/month.jsx
@@ -288,7 +288,7 @@ export default class Month extends React.Component {
288
preSelection,
289
monthClassName,
290
} = this.props;
291
- const _monthClassName = monthClassName ? monthClassName(day) : undefined;
+ const _monthClassName = monthClassName ? monthClassName(utils.setMonth(day, m)) : undefined;
292
return classnames(
293
"react-datepicker__month-text",
294
`react-datepicker__month-${m}`,
0 commit comments